From 6394a60a08e3cb0045d1a94f1d0f7e97d973e0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 27 May 2021 10:07:51 +0200 Subject: [PATCH] Dashboard: Fixes issue with title or folder change has no effect after exiting settings view (#34677) * Dashboard: Fixes issue with title or folder change has no effect after existing settings view * Updates snapshot --- .../app/features/dashboard/components/DashNav/DashNav.tsx | 8 +++++--- .../app/features/dashboard/containers/DashboardPage.tsx | 2 ++ .../containers/__snapshots__/DashboardPage.test.tsx.snap | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/app/features/dashboard/components/DashNav/DashNav.tsx b/public/app/features/dashboard/components/DashNav/DashNav.tsx index e1a07e4972e..946b04b4422 100644 --- a/public/app/features/dashboard/components/DashNav/DashNav.tsx +++ b/public/app/features/dashboard/components/DashNav/DashNav.tsx @@ -24,6 +24,8 @@ export interface OwnProps { isFullscreen: boolean; kioskMode: KioskMode; hideTimePicker: boolean; + folderTitle?: string; + title: string; onAddPanel: () => void; } @@ -245,14 +247,14 @@ class DashNav extends PureComponent { } render() { - const { dashboard, isFullscreen } = this.props; + const { isFullscreen, title, folderTitle } = this.props; const onGoBack = isFullscreen ? this.onClose : undefined; return ( {