Commit 532abe2f by Roman Khavronenko Committed by Torkel Ödegaard

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
parent 6c3f93c9
......@@ -9,7 +9,7 @@ export class TextBoxVariable implements Variable {
defaults = {
type: 'textbox',
name: '',
hide: 2,
hide: 0,
label: '',
query: '',
current: {},
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment