Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

Dashboard full screen should be allowed regardless of whether dashboard is locked (#4055)

Alex Bowersfeaac39e2ab8
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 && (
- <ButtonContainer>
+ <ButtonContainer>
+ <Button
+ loading={updateDashboardMutation.isLoading}
+ onClick={handle.enter}
+ icon={<FullscreenIcon size={16} />}
+ disabled={updateDashboardMutation.isLoading}
+ >
+ {t('dashboard:full_view')}
+ </Button>
+
+ {!isDashboardLocked && saveLayoutPermission && (
<Button
loading={updateDashboardMutation.isLoading}
- onClick={handle.enter}
- icon={<FullscreenIcon size={16} />}
+ onClick={onSaveHandler}
+ icon={<SaveFilled />}
disabled={updateDashboardMutation.isLoading}
>
- {t('dashboard:full_view')}
+ {t('dashboard:save_layout')}
</Button>
+ )}
- {saveLayoutPermission && (
- <Button
- loading={updateDashboardMutation.isLoading}
- onClick={onSaveHandler}
- icon={<SaveFilled />}
- disabled={updateDashboardMutation.isLoading}
- >
- {t('dashboard:save_layout')}
- </Button>
- )}
-
- {addPanelPermission && (
- <Button
- onClick={onAddPanelHandler}
- icon={<PlusOutlined />}
- data-testid="add-panel"
- >
- {t('dashboard:add_panel')}
- </Button>
- )}
- </ButtonContainer>
- )}
+ {!isDashboardLocked && addPanelPermission && (
+ <Button
+ onClick={onAddPanelHandler}
+ icon={<PlusOutlined />}
+ data-testid="add-panel"
+ >
+ {t('dashboard:add_panel')}
+ </Button>
+ )}
+ </ButtonContainer>
<FullScreen handle={handle} className="fullscreen-grid-container">
<ReactGridLayout