Sfoglia il codice sorgente

Expose onQueryChange to angular plugins

Jon Ferreira 6 anni fa
parent
commit
a3da8dc673
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      public/app/features/explore/QueryEditor.tsx

+ 3 - 0
public/app/features/explore/QueryEditor.tsx

@@ -43,6 +43,9 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
           this.props.onQueryChange(target);
           this.props.onExecuteQuery();
         },
+        onQueryChange: () => {
+          this.props.onQueryChange(target);
+        },
         events: exploreEvents,
         panel: { datasource, targets: [target] },
         dashboard: {},