mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
removed autoupdate on variabe refresh, don't needed if working interactive and fix #2722
This commit is contained in:
parent
a56f657fb1
commit
1c35d4b26b
@ -45,17 +45,6 @@ function (angular, _, kbn) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.setVariableFromUrl = function(variable, urlValue) {
|
this.setVariableFromUrl = function(variable, urlValue) {
|
||||||
if (variable.refresh) {
|
|
||||||
var self = this;
|
|
||||||
//refresh the list of options before setting the value
|
|
||||||
return this.updateOptions(variable).then(function() {
|
|
||||||
var option = _.findWhere(variable.options, { text: urlValue });
|
|
||||||
option = option || { text: urlValue, value: urlValue };
|
|
||||||
|
|
||||||
self.updateAutoInterval(variable);
|
|
||||||
return self.setVariableValue(variable, option);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
var option = _.findWhere(variable.options, { text: urlValue });
|
var option = _.findWhere(variable.options, { text: urlValue });
|
||||||
option = option || { text: urlValue, value: urlValue };
|
option = option || { text: urlValue, value: urlValue };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user