From 3acfa1b8d077e11a68c50220393da0fe3a3d2cfc Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 27 May 2021 04:35:10 -0400 Subject: [PATCH] Dashboard: Fixes issue with title or folder change has no effect after exiting settings view (#34677) (#34786) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Dashboard: Fixes issue with title or folder change has no effect after existing settings view * Updates snapshot (cherry picked from commit 6394a60a08e3cb0045d1a94f1d0f7e97d973e0dd) Co-authored-by: Torkel Ödegaard --- .../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 ( {