From 0e8f05e6d564491cd98dbe6c64cbb2d6f63615de Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Tue, 24 Apr 2018 17:40:03 +0200 Subject: [PATCH] added pointer to show more, reset values on new query (cherry picked from commit a40314022b0db1110d6d38d8919f2526dd915ca8) --- public/app/features/templating/editor_ctrl.ts | 1 + public/app/features/templating/partials/editor.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/templating/editor_ctrl.ts b/public/app/features/templating/editor_ctrl.ts index 2533ac03739..75a84cca2bf 100644 --- a/public/app/features/templating/editor_ctrl.ts +++ b/public/app/features/templating/editor_ctrl.ts @@ -97,6 +97,7 @@ export class VariableEditorCtrl { }; $scope.runQuery = function() { + $scope.optionsLimit = 20; return variableSrv.updateOptions($scope.current).catch(err => { if (err.data && err.data.message) { err.message = err.data.message; diff --git a/public/app/features/templating/partials/editor.html b/public/app/features/templating/partials/editor.html index 74cb2f23e84..0d8b0ace327 100644 --- a/public/app/features/templating/partials/editor.html +++ b/public/app/features/templating/partials/editor.html @@ -286,7 +286,7 @@ {{option.text}}
- Show more + Show more