mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
do not auto-enable saved filters
This commit is contained in:
parent
f7442f6016
commit
7c74cb8307
@ -54,8 +54,12 @@ define([
|
|||||||
// If an id is passed, the filter at that id is updated
|
// If an id is passed, the filter at that id is updated
|
||||||
this.set = function(filter,id,noRefresh) {
|
this.set = function(filter,id,noRefresh) {
|
||||||
var _r;
|
var _r;
|
||||||
_.defaults(filter,{mandate:'must'});
|
|
||||||
filter.active = true;
|
_.defaults(filter,{
|
||||||
|
mandate:'must',
|
||||||
|
active: true
|
||||||
|
});
|
||||||
|
|
||||||
if(!_.isUndefined(id)) {
|
if(!_.isUndefined(id)) {
|
||||||
if(!_.isUndefined(self.list[id])) {
|
if(!_.isUndefined(self.list[id])) {
|
||||||
_.extend(self.list[id],filter);
|
_.extend(self.list[id],filter);
|
||||||
|
Loading…
Reference in New Issue
Block a user