Explorar o código

removed autoupdate on variabe refresh, don't needed if working interactive and fix #2722

toni-moreno %!s(int64=10) %!d(string=hai) anos
pai
achega
1c35d4b26b
Modificáronse 1 ficheiros con 0 adicións e 11 borrados
  1. 0 11
      public/app/features/templating/templateValuesSrv.js

+ 0 - 11
public/app/features/templating/templateValuesSrv.js

@@ -45,17 +45,6 @@ function (angular, _, kbn) {
     };
 
     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 });
       option = option || { text: urlValue, value: urlValue };