mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
update persisted parts on param change
This commit is contained in:
parent
e84a1cbcc5
commit
28f97a2450
@ -381,6 +381,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
}
|
||||
}
|
||||
case 'part-param-changed': {
|
||||
this.updatePersistedParts();
|
||||
this.panelCtrl.refresh();
|
||||
break;
|
||||
}
|
||||
@ -404,6 +405,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
.catch(this.handleQueryError.bind(this));
|
||||
}
|
||||
case 'part-param-changed': {
|
||||
this.updatePersistedParts();
|
||||
this.panelCtrl.refresh();
|
||||
break;
|
||||
}
|
||||
@ -497,6 +499,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
}
|
||||
}
|
||||
case 'part-param-changed': {
|
||||
this.updatePersistedParts();
|
||||
this.datasource.metricFindQuery(this.metaBuilder.buildDatatypeQuery(part.params[0])).then((d: any) => {
|
||||
if (d.length === 1) {
|
||||
part.datatype = d[0].text;
|
||||
|
Loading…
Reference in New Issue
Block a user