From ba1e1532ace60aa6d051e6d9e520f21783c58fa9 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 8 Mar 2016 18:13:40 +0900 Subject: [PATCH] change option name more clearly --- public/app/features/templating/partials/editor.html | 2 +- public/app/features/templating/templateValuesSrv.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/features/templating/partials/editor.html b/public/app/features/templating/partials/editor.html index d7591086b5c..3028bfa8a36 100644 --- a/public/app/features/templating/partials/editor.html +++ b/public/app/features/templating/partials/editor.html @@ -171,7 +171,7 @@
Refresh - + When to update the values of this template, will slow down dashboard load / time change
diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index c1086a2a62a..4e5530b82f7 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -24,7 +24,7 @@ function (angular, _, kbn) { var promises = []; for (var i = 0; i < self.variables.length; i++) { var variable = self.variables[i]; - if (variable.refresh === 'On Time Change') { + if (variable.refresh === 'On Time Change and Dashboard Load') { promises.push(self.updateOptions(variable)); } } @@ -71,7 +71,7 @@ function (angular, _, kbn) { if (urlValue !== void 0) { return self.setVariableFromUrl(variable, urlValue).then(lock.resolve); } - else if (variable.refresh === 'On Dashboard Load' || variable.refresh === 'On Time Change') { + else if (variable.refresh === 'On Dashboard Load' || variable.refresh === 'On Time Change and Dashboard Load') { return self.updateOptions(variable).then(function() { if (_.isEmpty(variable.current) && variable.options.length) { console.log("setting current for %s", variable.name);