mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 20:43:26 -06:00
Added hover tooltip for tags
This commit is contained in:
parent
8934c83742
commit
cb63344394
@ -93,7 +93,7 @@ function (angular, app, _) {
|
||||
|
||||
tagValuesPromise.then(function(values) {
|
||||
tag.values = values;
|
||||
tag.valuesText = values.join(', ');
|
||||
tag.valuesText = values.join(' + ');
|
||||
_.each(vm.options, function(option) {
|
||||
if (_.indexOf(tag.values, option.value) !== -1) {
|
||||
option.selected = tag.selected;
|
||||
|
@ -1,10 +1,12 @@
|
||||
<div class="variable-link-wrapper">
|
||||
<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">
|
||||
<span ng-repeat="tag in vm.selectedTags" bs-tooltip='tag.valuesText' data-placement="bottom">
|
||||
<span class="label-tag"tag-color-from-name="tag.text">
|
||||
<i class="fa fa-tag"></i>
|
||||
{{tag.text}}
|
||||
</span>
|
||||
</span>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</a>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user