fix instance group lookup

This commit is contained in:
John Mitchell
2018-11-19 15:38:11 -05:00
parent 0c1a4439ba
commit 22e7083d71
2 changed files with 8 additions and 9 deletions

View File

@@ -1,14 +1,18 @@
<div class="input-group Form-mixedInputGroup"> <div class="input-group Form-mixedInputGroup">
<span class="input-group-btn"> <span class="input-group-btn Form-variableHeightButtonGroup">
<button type="button" class="Form-lookupButton btn btn-default" ng-click="openInstanceGroupsModal()" <button type="button" class="Form-lookupButton Form-lookupButton--variableHeight btn btn-default" ng-click="openInstanceGroupsModal()"
ng-disabled="fieldIsDisabled"> ng-disabled="fieldIsDisabled">
<i class="fa fa-search"></i> <i class="fa fa-search"></i>
</button> </button>
</span> </span>
<span id="InstanceGroups" class="form-control Form-textInput Form-textInput--variableHeight input-medium lookup LabelList-lookupTags" <span id="InstanceGroups" class="form-control Form-textInput Form-textInput--variableHeight input-medium lookup LabelList-lookupTags"
ng-disabled="fieldIsDisabled"> ng-disabled="fieldIsDisabled"
<div class="LabelList-tagContainer" ng-repeat="tag in instanceGroupsTags"> ng-class="{'LabelList-lookupTags--disabled' : fieldIsDisabled}">
<div ng-if="!fieldIsDisabled" class="LabelList-tagContainer" ng-repeat="tag in instanceGroupsTags">
<at-tag tag="tag.name" remove-tag="deleteTag(tag)"></at-tag> <at-tag tag="tag.name" remove-tag="deleteTag(tag)"></at-tag>
</div> </div>
<div ng-if="fieldIsDisabled" class="LabelList-tag" ng-repeat="tag in instanceGroupsTags">
<span class="LabelList-name">{{tag.name}}</span>
</div>
</span> </span>
</div> </div>

View File

@@ -92,11 +92,6 @@
.LabelList-lookupTags { .LabelList-lookupTags {
display: flex; display: flex;
padding: 0 12px; padding: 0 12px;
overflow-y: hidden;
}
.LabelList-lookupTags[disabled] {
pointer-events: none;
} }
.LabelList-lookupTags--disabled { .LabelList-lookupTags--disabled {