mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(adhoc filters): good progress on ad hoc filters and sync from to url, #6038
This commit is contained in:
@@ -9,13 +9,14 @@ export class DatasourceVariable implements Variable {
|
||||
regex: any;
|
||||
query: string;
|
||||
options: any;
|
||||
current: any;
|
||||
|
||||
defaults = {
|
||||
type: 'datasource',
|
||||
name: '',
|
||||
hide: 0,
|
||||
label: '',
|
||||
current: {text: '', value: ''},
|
||||
current: {},
|
||||
regex: '',
|
||||
options: [],
|
||||
query: '',
|
||||
@@ -73,6 +74,10 @@ export class DatasourceVariable implements Variable {
|
||||
setValueFromUrl(urlValue) {
|
||||
return this.variableSrv.setOptionFromUrl(this, urlValue);
|
||||
}
|
||||
|
||||
getValueForUrl() {
|
||||
return this.current.value;
|
||||
}
|
||||
}
|
||||
|
||||
variableTypes['datasource'] = {
|
||||
|
||||
Reference in New Issue
Block a user