mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
6c3f93c974
commit
532abe2fc2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user