mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
add hide template variable option
This commit is contained in:
parent
30f3b55baf
commit
45e6187c1a
@ -1,6 +1,6 @@
|
||||
<div class="submenu-controls">
|
||||
<ul ng-if="ctrl.dashboard.templating.list.length > 0">
|
||||
<li ng-repeat="variable in ctrl.variables" class="submenu-item">
|
||||
<li ng-repeat="variable in ctrl.variables" ng-show="!variable.hideVariable" class="submenu-item">
|
||||
<span class="submenu-item-label template-variable " ng-show="!variable.hideLabel">
|
||||
{{variable.label || variable.name}}:
|
||||
</span>
|
||||
|
@ -95,6 +95,7 @@
|
||||
<span class="gf-form-label width-7">Label</span>
|
||||
<input type="text" class="gf-form-input max-width-14" ng-model='current.label' placeholder="optional display name"></input>
|
||||
<editor-checkbox class="width-13" text="Hide label" model="current.hideLabel" change="runQuery()"></editor-checkbox>
|
||||
<editor-checkbox class="width-13" text="Hide variable" model="current.hideVariable" change="runQuery()"></editor-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user