Small fixes for template variable groups (tags)
This commit is contained in:
@@ -26,6 +26,8 @@ function (angular, app, _) {
|
||||
return option;
|
||||
});
|
||||
|
||||
_.sortBy(vm.options, 'text');
|
||||
|
||||
vm.selectedValues = _.filter(vm.options, {selected: true});
|
||||
|
||||
if (!vm.tags) {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<a ng-click="vm.show()" class="variable-value-link tight-form-item">
|
||||
{{vm.linkText}}
|
||||
<span class="label-tag" ng-repeat="tag in vm.selectedTags" tag-color-from-name="tag.text">
|
||||
{{tag.text}}
|
||||
<i class="fa fa-tag"></i>
|
||||
{{tag.text}}
|
||||
</span>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</a>
|
||||
|
||||
@@ -153,6 +153,7 @@ function (angular, _, kbn) {
|
||||
});
|
||||
});
|
||||
} else {
|
||||
delete variable.tags;
|
||||
return queryPromise;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user