Skip to content

Commit

Permalink
Merge pull request #427 from skateman/miq-select-tagging
Browse files Browse the repository at this point in the history
Use miq-select in dialogUser's tagging fields
  • Loading branch information
himdel authored Nov 20, 2019
2 parents e142ea3 + 982719d commit 547b6ca
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 547b6ca

Please sign in to comment.