From 58d6ce1c8746d82f7981c052d95dda978f7d00e3 Mon Sep 17 00:00:00 2001 From: Victor Marin <36818606+mdvictor@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:41:56 +0200 Subject: [PATCH] Add lib panel from empty dashboard page (#83522) * wip * tests + refactor ad panel func * Add row functionality * update row state only when there are children * Add new row + copy paste panels * Add library panel functionality * tests * PR mods * reafctor + tests * reafctor * fix test * refactor * fix bug on cancelling lib widget * dashboard now saves with lib panel widget * add lib panels widget works in rows as well * split add lib panel func to another PR * Add library panel functionality * Add lib panel from empty dashboard page * refactor * take panelKey into account when getting next panel id in dashboard * fix tests --- public/app/features/dashboard/dashgrid/DashboardEmpty.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardEmpty.tsx b/public/app/features/dashboard/dashgrid/DashboardEmpty.tsx index f30bcf95a55..9de79fbc1de 100644 --- a/public/app/features/dashboard/dashgrid/DashboardEmpty.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardEmpty.tsx @@ -113,7 +113,7 @@ const DashboardEmpty = ({ dashboard, canCreate }: Props) => { onClick={() => { DashboardInteractions.emptyDashboardButtonClicked({ item: 'import_from_library' }); if (dashboard instanceof DashboardScene) { - // TODO: dashboard scene logic for adding a library panel + dashboard.onCreateLibPanelWidget(); } else { onAddLibraryPanel(dashboard); }