mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
[Forms] Simplify select model value
Simplify select control's interaction with the model; only store the value associated with the option, not the name (which is just displayed for the user.) WTD-530.
This commit is contained in:
parent
d7c7e2835f
commit
bc3d1270d2
@ -1,6 +1,6 @@
|
|||||||
<select class='form-control input select'
|
<select class='form-control input select'
|
||||||
ng-model="ngModel[field]"
|
ng-model="ngModel[field]"
|
||||||
ng-options="o.name for o in options"
|
ng-options="opt.value as opt.name for opt in options"
|
||||||
ng-required="ngRequired"
|
ng-required="ngRequired"
|
||||||
name="mctControl">
|
name="mctControl">
|
||||||
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user