Templating: Do not copy hide option (#16696)

* Do not override default `hide` value of variables

Some variables like `constant` are configured to
be hidden by default and this setting must be
treated with respect.

* make textBox variable visible by default

Fixes #16695
This commit is contained in:
Roman Khavronenko 2019-04-22 12:11:05 +01:00 committed by Torkel Ödegaard
parent 6c3f93c974
commit 532abe2fc2
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export class TextBoxVariable implements Variable {
defaults = {
type: 'textbox',
name: '',
hide: 2,
hide: 0,
label: '',
query: '',
current: {},

View File

@ -163,7 +163,6 @@ export class VariableEditorCtrl {
type: $scope.current.type,
});
$scope.current.name = old.name;
$scope.current.hide = old.hide;
$scope.current.label = old.label;
const oldIndex = _.indexOf(this.variables, old);