Browse Source

update persisted parts on param change

Sven Klemm 7 years ago
parent
commit
28f97a2450
1 changed files with 3 additions and 0 deletions
  1. 3 0
      public/app/plugins/datasource/postgres/query_ctrl.ts

+ 3 - 0
public/app/plugins/datasource/postgres/query_ctrl.ts

@@ -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;