mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(templating): progress on variable system refactoring, #6048
This commit is contained in:
@@ -15,7 +15,7 @@ export class DatasourceVariable implements Variable {
|
||||
name: '',
|
||||
hide: 0,
|
||||
label: '',
|
||||
current: {text: '', value: ''}
|
||||
current: {text: '', value: ''},
|
||||
regex: '',
|
||||
options: [],
|
||||
query: '',
|
||||
@@ -32,7 +32,7 @@ export class DatasourceVariable implements Variable {
|
||||
}
|
||||
|
||||
setValue(option) {
|
||||
this.variableSrv.setOptionAsCurrent(this, option);
|
||||
return this.variableSrv.setOptionAsCurrent(this, option);
|
||||
}
|
||||
|
||||
updateOptions() {
|
||||
@@ -63,6 +63,7 @@ export class DatasourceVariable implements Variable {
|
||||
}
|
||||
|
||||
this.options = options;
|
||||
return this.variableSrv.validateVariableSelectionState(this);
|
||||
}
|
||||
|
||||
dependsOn(variable) {
|
||||
|
||||
Reference in New Issue
Block a user