mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(templating): another fix for templating and custom all value escaping, fixes #4787
This commit is contained in:
parent
2748a3fbd8
commit
1dfeb192a3
@ -294,11 +294,6 @@ function (angular, _, kbn) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.addAllOption = function(variable) {
|
this.addAllOption = function(variable) {
|
||||||
if (variable.allValue) {
|
|
||||||
variable.options.unshift({text: 'All', value: variable.allValue});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
variable.options.unshift({text: 'All', value: "$__all"});
|
variable.options.unshift({text: 'All', value: "$__all"});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should add All option with custom value', function() {
|
it('should add All option with custom value', function() {
|
||||||
expect(scenario.variable.options[0].value).to.be('*');
|
expect(scenario.variable.options[0].value).to.be('$__all');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user