NgAlerting: View query result (#30218)

* Fix query preview add tabs to options

* break out tabs to components

* add refresh button

* minor things after PR review

* hide queries

* Add simple error screen if there's an error

* dropdown with different frames

* move onrunqueries to redux

* cleanup

* show actual error
This commit is contained in:
Peter Holmberg
2021-01-19 14:04:54 +01:00
committed by GitHub
parent 506120bb81
commit 4b888d105d
16 changed files with 251 additions and 86 deletions

View File

@@ -16,6 +16,7 @@ export const getNextRefIdChar = (queries: DataQuery[]): string => {
export function addQuery(queries: DataQuery[], query?: Partial<DataQuery>): DataQuery[] {
const q = query || {};
q.refId = getNextRefIdChar(queries);
q.hide = false;
return [...queries, q as DataQuery];
}