Переглянути джерело

Expose onQueryChange to angular plugins

Jon Ferreira 6 роки тому
батько
коміт
a3da8dc673
1 змінених файлів з 3 додано та 0 видалено
  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.onQueryChange(target);
           this.props.onExecuteQuery();
           this.props.onExecuteQuery();
         },
         },
+        onQueryChange: () => {
+          this.props.onQueryChange(target);
+        },
         events: exploreEvents,
         events: exploreEvents,
         panel: { datasource, targets: [target] },
         panel: { datasource, targets: [target] },
         dashboard: {},
         dashboard: {},