|
|
@@ -10,6 +10,7 @@ export class VariableEditorCtrl {
|
|
|
$scope.ctrl = {};
|
|
|
$scope.namePattern = /^(?!__).*$/;
|
|
|
$scope._ = _;
|
|
|
+ $scope.optionsLimit = 20;
|
|
|
|
|
|
$scope.refreshOptions = [
|
|
|
{ value: 0, text: 'Never' },
|
|
|
@@ -96,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;
|
|
|
@@ -165,6 +167,10 @@ export class VariableEditorCtrl {
|
|
|
$scope.removeVariable = function(variable) {
|
|
|
variableSrv.removeVariable(variable);
|
|
|
};
|
|
|
+
|
|
|
+ $scope.showMoreOptions = function() {
|
|
|
+ $scope.optionsLimit += 20;
|
|
|
+ };
|
|
|
}
|
|
|
}
|
|
|
|