Przeglądaj źródła

add hide template variable option

Mitsuhiro Tanda 9 lat temu
rodzic
commit
45e6187c1a

+ 1 - 1
public/app/features/dashboard/submenu/submenu.html

@@ -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>

+ 1 - 0
public/app/features/templating/partials/editor.html

@@ -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>