Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to hide "panel spy" #154

Closed
wants to merge 9 commits into from
2 changes: 2 additions & 0 deletions dashboards/default
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
],
"timezone": "browser",
"spyable": true,
"spy": true,
"zoomlinks": true,
"fill": 0,
"linewidth": 2,
Expand Down Expand Up @@ -208,6 +209,7 @@
"overflow": "min-height",
"timezone": "browser",
"spyable": true,
"spy": true,
"zoomlinks": true,
"size": 50,
"pages": 10,
Expand Down
20 changes: 11 additions & 9 deletions panels/histogram/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ <h5>Chart Options</h5>
<label class="small">Use Elasticsearch date math format (eg 1m, 5m, 1d, 2w, 1y)</label>
</div>
</div>
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small">Spyable</label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
<div ng-show="panel.spyable">
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small">Spy</label><input type="checkbox" ng-model="panel.spy" ng-checked="panel.spy">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions panels/histogram/module.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<kibana-panel ng-controller='histogram' ng-init="init()" style="height:{{panel.height || row.height}}">
<span ng-show="panel.spyable" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<span ng-show="panel.spyable && panel.spy" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<i bs-modal="'partials/modal.html'" class="icon-eye-open"></i>
</span>
<div>
Expand All @@ -15,4 +15,4 @@
</div>
<center><img ng-show='panel.loading && _.isUndefined(data)' src="common/img/load_big.gif"></center>
<div histogram-chart params="{{panel}}" style="height:{{panel.height || row.height}};position:relative"></div>
</kibana-panel>
</kibana-panel>
20 changes: 11 additions & 9 deletions panels/map/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ <h6>Query</h6>
<select ng-change="$emit('render')" class="input-small" ng-model="panel.map" ng-options="f for f in ['world','europe','usa']"></select>
</div>
</div>
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
<div ng-show="panel.spyable">
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spy </label><input type="checkbox" ng-model="panel.spy" ng-checked="panel.spy">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions panels/map/module.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<kibana-panel ng-controller='map' ng-init="init()">
<span ng-show="panel.spyable" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<span ng-show="panel.spyable && panel.spy" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<i bs-modal="'partials/modal.html'" class="icon-eye-open"></i>
</span>
<div map params="{{panel}}" style="height:{{panel.height || row.height}}"></div>
</kibana-panel>
</kibana-panel>
22 changes: 12 additions & 10 deletions panels/pie/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@
<select class="input-small" ng-model="panel.legend" ng-options="f for f in ['above','below','none']"></select></span>
</div>
</div>
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
<div ng-show="panel.spyable">
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spy </label><input type="checkbox" ng-model="panel.spy" ng-checked="panel.spy">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions panels/pie/module.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<kibana-panel ng-controller='pie' ng-init="init()">
<span ng-show='panel.spyable' style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<span ng-show='panel.spyable && panel.spy' style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<i bs-modal="'partials/modal.html'" class="icon-eye-open"></i>
</span>

Expand All @@ -13,4 +13,4 @@
<div ng-show="panel.legend == 'below'" ng-repeat="query in plot.getData()" style="float:left;padding-left: 10px;">
<span ng-show='panel.chart != "none"'><div style="display:inline-block;border-radius:5px;background:{{query.color}};height:10px;width:10px"></div></span><span class="small"> {{query.label}} ({{query.data[0][1]}}) </span></span>
</div>
</kibana-panel>
</kibana-panel>
20 changes: 11 additions & 9 deletions panels/table/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ <h6>A note about sorting</h6>
once. Only enable sorting if your cluster is stout enough to handle it.
</div>
</div>-->
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
<div ng-show="panel.spyable">
<h5>Panel Spy</h5>
<div class="row-fluid">
<div class="span2">
<label class="small"> Spy </label><input type="checkbox" ng-model="panel.spy" ng-checked="panel.spy">
</div>
<div class="span9 small">
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the <i class='icon-eye-open'></i> in the top right
of the panel.
</div>
</div>
</div>

4 changes: 2 additions & 2 deletions panels/table/module.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<kibana-panel ng-controller='table' ng-init='init()'>

<span ng-show="panel.spyable" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<span ng-show="panel.spyable && panel.spy" style="position:absolute;right:0px;top:0px" class='panelextra pointer'>
<i bs-modal="'partials/modal.html'" class="icon-eye-open"></i>
</span>

Expand Down Expand Up @@ -73,4 +73,4 @@
</div>
</div>
</div>
</kibana-panel>
</kibana-panel>