From 84ade9a02cee4234557eceefb7880b17c35b1491 Mon Sep 17 00:00:00 2001 From: Naman Munet Date: Fri, 27 Mar 2026 19:56:42 +0530 Subject: [PATCH] mgr/dashboard: telemetry banner causes UI freeze on initial load Fixes: https://tracker.ceph.com/issues/75761 Signed-off-by: Naman Munet --- .../ceph/dashboard/dashboard/dashboard.component.html | 7 +++++-- .../workbench-layout/workbench-layout.component.html | 7 ++++--- .../telemetry-notification.component.ts | 11 ++++++++--- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html index 81b83cdc5127..121c9781dd6d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html @@ -1,11 +1,14 @@
-@let features = enabledFeature$ | async; -@if (features?.dashboard) { +@if (enabledFeature$ | async; as features) { +@if (features.dashboard) { } @else { + + } +}
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html index 448966fc4964..aeafc41c4470 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html @@ -7,12 +7,13 @@
+ @if (enabledFeature$ | async; as features) { - @let features = enabledFeature$ | async; - @if (features?.dashboard) { + + @if (features.dashboard) { } - + }