From dd7fbb7b64c6d4ebf757367b0ae6e83dfc4e41df Mon Sep 17 00:00:00 2001 From: Ezequiel Victorero Date: Wed, 18 Jun 2025 15:00:17 -0300 Subject: [PATCH] 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 --- .../app/features/explore/QueryLibrary/QueryLibraryContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/explore/QueryLibrary/QueryLibraryContext.tsx b/public/app/features/explore/QueryLibrary/QueryLibraryContext.tsx index 6735563b939..90640203d48 100644 --- a/public/app/features/explore/QueryLibrary/QueryLibraryContext.tsx +++ b/public/app/features/explore/QueryLibrary/QueryLibraryContext.tsx @@ -34,10 +34,11 @@ export type QueryLibraryContextType = { * @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 * 'dashboard'. + * @param options.title Default title for the modal, can be overridden by the query title. */ openAddQueryModal: ( query: DataQuery, - options?: { isDuplicating?: boolean; onSave?: () => void; context?: string } + options?: { onSave?: () => void; context?: string; title?: string; isDuplicating?: boolean } ) => void; closeAddQueryModal: () => void;