Query Library: Add title param when creating a query (#106713)
* Query Library: Add title param when creating a query * kick CI --------- Co-authored-by: Collin Fingar <collin.fingar@grafana.com>
This commit is contained in:
co-authored by
Collin Fingar
parent
b68166c437
commit
dd7fbb7b64
@@ -34,10 +34,11 @@ export type QueryLibraryContextType = {
|
|||||||
* @param options.onSave Callback that will be called after the query is saved.
|
* @param options.onSave Callback that will be called after the query is saved.
|
||||||
* @param options.context Used for tracking. Should identify the context this is called from, like 'explore' or
|
* @param options.context Used for tracking. Should identify the context this is called from, like 'explore' or
|
||||||
* 'dashboard'.
|
* 'dashboard'.
|
||||||
|
* @param options.title Default title for the modal, can be overridden by the query title.
|
||||||
*/
|
*/
|
||||||
openAddQueryModal: (
|
openAddQueryModal: (
|
||||||
query: DataQuery,
|
query: DataQuery,
|
||||||
options?: { isDuplicating?: boolean; onSave?: () => void; context?: string }
|
options?: { onSave?: () => void; context?: string; title?: string; isDuplicating?: boolean }
|
||||||
) => void;
|
) => void;
|
||||||
closeAddQueryModal: () => void;
|
closeAddQueryModal: () => void;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user