From feaac39e2ab859b99d37d43658fbe7bd1926bd48 Mon Sep 17 00:00:00 2001 From: Alex Bowers Date: Fri, 24 Nov 2023 09:20:45 +0000 Subject: [PATCH] Dashboard full screen should be allowed regardless of whether dashboard is locked (#4055) --- .../GridCardLayout/GridCardLayout.tsx | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/frontend/src/container/GridCardLayout/GridCardLayout.tsx b/frontend/src/container/GridCardLayout/GridCardLayout.tsx index 19d7244f5e..5cebd36c0e 100644 --- a/frontend/src/container/GridCardLayout/GridCardLayout.tsx +++ b/frontend/src/container/GridCardLayout/GridCardLayout.tsx @@ -109,39 +109,37 @@ function GraphLayout({ onAddPanelHandler }: GraphLayoutProps): JSX.Element { return ( <> - {!isDashboardLocked && ( - + + + + {!isDashboardLocked && saveLayoutPermission && ( + )} - {saveLayoutPermission && ( - - )} - - {addPanelPermission && ( - - )} - - )} + {!isDashboardLocked && addPanelPermission && ( + + )} +