mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Restored the variable color for the label/name in the submenu
This commit is contained in:
parent
53cb0feda9
commit
8c14e565a7
@ -99,12 +99,8 @@ function (angular, app, _) {
|
||||
};
|
||||
|
||||
scope.updateLinkText = function() {
|
||||
scope.linkText = "";
|
||||
if (!variable.hideLabel) {
|
||||
scope.linkText = (variable.label || variable.name) + ': ';
|
||||
}
|
||||
|
||||
scope.linkText += variable.current.text;
|
||||
scope.labelText = variable.label || '$' + variable.name;
|
||||
scope.linkText = variable.current.text;
|
||||
};
|
||||
|
||||
scope.$watchGroup(['variable.hideLabel', 'variable.name', 'variable.label', 'variable.current.text'], function() {
|
||||
|
@ -1,3 +1,6 @@
|
||||
<span class="template-variable" ng-show="!variable.hideLabel" style="padding-right: 5px">
|
||||
{{labelText}}:
|
||||
</span>
|
||||
<a ng-click="show()" class="variable-value-link">
|
||||
{{linkText}}
|
||||
<i class="fa fa-caret-down"></i>
|
||||
|
Loading…
Reference in New Issue
Block a user