mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 07:00:49 +00:00
Revert "[Autocomplete] Show warning icon if invalid option was typed"
This reverts commit 307320b3ffd47c2bf5f5741f61cd56c5f9204d13.
This commit is contained in:
parent
307320b3ff
commit
7b690d0785
@ -329,13 +329,6 @@ textarea.lg { position: relative; height: 300px; }
|
|||||||
color: $colorInspectorSectionHeaderFg;
|
color: $colorInspectorSectionHeaderFg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.autocompleteWarning {
|
|
||||||
color: $colorFormInvalid;
|
|
||||||
position: absolute;
|
|
||||||
font-size: 11px;
|
|
||||||
left: 235px;
|
|
||||||
bottom: 7px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************** OBJECT-HEADER */
|
/******************************************************** OBJECT-HEADER */
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
ng-model="ngModel[field]"
|
ng-model="ngModel[field]"
|
||||||
ng-change="filterOptions(ngModel[field])"
|
ng-change="filterOptions(ngModel[field])"
|
||||||
ng-init="filterOptions(ngModel[field])"
|
|
||||||
ng-click="inputClicked()"
|
ng-click="inputClicked()"
|
||||||
ng-keydown="keyDown($event)"/>
|
ng-keydown="keyDown($event)"/>
|
||||||
<span class="icon-arrow-down"
|
<span class="icon-arrow-down"
|
||||||
@ -44,7 +43,4 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<span class="icon-x autocompleteWarning"
|
|
||||||
ng-show="invalidOption">
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
@ -111,7 +111,6 @@ define(
|
|||||||
name: option
|
name: option
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
$scope.invalidOption = $scope.filteredOptions.length === 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.inputClicked = function () {
|
$scope.inputClicked = function () {
|
||||||
|
@ -53,11 +53,6 @@ define([
|
|||||||
expect(mockScope.filteredOptions).toEqual(filteredOptions);
|
expect(mockScope.filteredOptions).toEqual(filteredOptions);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("checks if invalid option was typed", function () {
|
|
||||||
mockScope.filterOptions('openmct');
|
|
||||||
expect(mockScope.invalidOption).toEqual(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("fills input with given string", function () {
|
it("fills input with given string", function () {
|
||||||
var str = "UTC";
|
var str = "UTC";
|
||||||
mockScope.fillInput(str);
|
mockScope.fillInput(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user