Skip to content

Commit

Permalink
Use miq-select in dialogUser's tagging fields
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Nov 12, 2019
1 parent 441edec commit 982719d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/dialog-user/components/dialog-user/dialogField.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,29 @@
</div>

<div class="col-sm-6" ng-switch-when="DialogFieldTagControl">
<select ng-if="vm.dialogField.options.force_single_value"
<select miq-select
ng-if="vm.dialogField.options.force_single_value"
ng-model="vm.dialogField.default_value"
ng-disabled="vm.dialogField.read_only || vm.inputDisabled"
watch-model="vm.dialogField.values"
ng-change="vm.changesHappened()"
ng-disabled="vm.dialogField.read_only || vm.inputDisabled"
class="form-control"
data-container="body"
id="{{ vm.dialogField.name }}"
ng-options="fieldValue.id as fieldValue.description for fieldValue in vm.dialogField.values"
id="{{ vm.dialogField.name }}">
</select>
></select>

<select ng-if="!vm.dialogField.options.force_single_value"
multiple
<select miq-select multiple
data-container="body"
ng-if="!vm.dialogField.options.force_single_value"
ng-model="vm.dialogField.default_value"
ng-disabled="vm.dialogField.read_only || vm.inputDisabled"
watch-model="vm.dialogField.values"
ng-change="vm.changesHappened()"
ng-disabled="vm.dialogField.read_only || vm.inputDisabled"
class="form-control"
id="{{ vm.dialogField.name }}"
ng-options="fieldValue.id as fieldValue.description for fieldValue in vm.dialogField.values"
id="{{ vm.dialogField.name }}">
</select>
></select>

<div ng-if="vm.validation.isValid === false">{{ vm.validation.message }}</div>
</div>
Expand Down

0 comments on commit 982719d

Please sign in to comment.