mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user