Skip to content

Commit 29b7aaf

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: do not show settings-related banners if settings page is not visible (#42440)
GitOrigin-RevId: fdd62411c99a2b393ba4c8ad409734107d7f2eb8
1 parent d0cadf3 commit 29b7aaf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

npm-packages/dashboard-common/src/layouts/DeploymentDashboardLayout.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,13 @@ export function DeploymentDashboardLayout({
140140
return (
141141
<FunctionsProvider>
142142
<div className="flex h-full grow flex-col overflow-y-hidden">
143-
<PauseBanner />
144-
<NodeVersionBanner />
143+
{visiblePages === undefined ||
144+
(visiblePages.includes("settings") && (
145+
<>
146+
<PauseBanner />
147+
<NodeVersionBanner />
148+
</>
149+
))}
145150
<div className="flex h-full flex-col overflow-y-auto sm:flex-row">
146151
{sidebarItems.length > 0 && (
147152
<Sidebar

0 commit comments

Comments
 (0)