Small fixes for template variable groups (tags)

This commit is contained in:
Torkel Ödegaard 2015-06-02 14:39:21 +02:00
parent b0451dc1b3
commit 8934c83742
3 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ function (angular, app, _) {
return option;
});
_.sortBy(vm.options, 'text');
vm.selectedValues = _.filter(vm.options, {selected: true});
if (!vm.tags) {

View File

@ -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}}
&nbsp;&nbsp;<i class="fa fa-tag"></i>&nbsp;
{{tag.text}}
</span>
<i class="fa fa-caret-down"></i>
</a>

View File

@ -153,6 +153,7 @@ function (angular, _, kbn) {
});
});
} else {
delete variable.tags;
return queryPromise;
}
});