From f567c98de45a9e7f414efaf60cf379d8c03c6d25 Mon Sep 17 00:00:00 2001 From: stroblme Date: Tue, 25 Aug 2026 22:15:09 +0200 Subject: [PATCH] Say a dashboard is read-only in the editor's view mode too The lock notice was on `PanelSurface` alone, so /dashboards/{name} showed disabled controls with nothing naming the state. Same pill, not a second one; edit mode keeps its controls live, so it stays out of there. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_013Gf7WaExcJ9bs3kfJXB3nK --- frontend/src/components/Dashboard/DashboardEditor.tsx | 6 ++++++ frontend/src/components/Dashboard/PanelSurface.tsx | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Dashboard/DashboardEditor.tsx b/frontend/src/components/Dashboard/DashboardEditor.tsx index 7246fca..20ad3bb 100644 --- a/frontend/src/components/Dashboard/DashboardEditor.tsx +++ b/frontend/src/components/Dashboard/DashboardEditor.tsx @@ -67,6 +67,7 @@ import { widgetsOf, } from "./DashboardView" import { PanelRail } from "./PanelRail" +import { LockNotice } from "./PanelSurface" import { DashboardPanel, WidgetPanel } from "./panels" import { dashboardKeys, @@ -545,6 +546,11 @@ export function DashboardEditor({ + {/* Reading this dashboard is reading the panel, disabled controls and + all — so it says the same thing a panel does. Not while editing: + arranging never mounts the lock, so the controls are live. */} + {edit ? null : } +