mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Small fixes for template variable groups (tags)
This commit is contained in:
parent
b0451dc1b3
commit
8934c83742
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user