mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Added 'unpinned' option to query selector
This commit is contained in:
parent
503d0c243b
commit
3e39dc8003
@ -227,6 +227,8 @@ angular.module('kibana.services', [])
|
||||
return self.ids;
|
||||
case 'pinned':
|
||||
return _.pluck(_.where(self.list,{pin:true}),'id');
|
||||
case 'unpinned':
|
||||
return _.difference(self.ids,_.pluck(_.where(self.list,{pin:true}),'id'));
|
||||
case 'selected':
|
||||
return _.intersection(self.ids,config.ids);
|
||||
default:
|
||||
|
@ -11,7 +11,7 @@
|
||||
</style>
|
||||
<h4>Queries</h4>
|
||||
<div class="span2" style="margin-left:0px">
|
||||
<select class="input-small" ng-change="set_refresh(true);" ng-model="panel.queries.mode" ng-options="f for f in ['all','pinned','selected']"></select>
|
||||
<select class="input-small" ng-change="set_refresh(true);" ng-model="panel.queries.mode" ng-options="f for f in ['all','pinned','unpinned','selected']"></select>
|
||||
</div>
|
||||
<div class="span9 querySelect" ng-show="panel.queries.mode == 'selected'">
|
||||
<span ng-style="{'border-color': querySrv.list[id].color}" ng-class="{selected:_.contains(panel.queries.ids,id),unselected:!_.contains(panel.queries.ids,id)}" ng-repeat="id in querySrv.ids" ng-click="panel.queries.ids = _.toggleInOut(panel.queries.ids,id);set_refresh(true);" class="query pointer badge">
|
||||
|
Loading…
Reference in New Issue
Block a user