From 5012b4079ef0a45b70624140420eac1ee2a11134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 18 Dec 2025 16:19:33 +0100 Subject: [PATCH] Dashboards: Do not show alert rules button for new dashboads --- public/app/features/alerting/unified/initAlerting.tsx | 2 +- .../dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/public/app/features/alerting/unified/initAlerting.tsx b/public/app/features/alerting/unified/initAlerting.tsx index fe168aa01c8..fcd93596f05 100644 --- a/public/app/features/alerting/unified/initAlerting.tsx +++ b/public/app/features/alerting/unified/initAlerting.tsx @@ -22,7 +22,7 @@ export function initAlerting() { component: ({ dashboard }) => alertingEnabled ? ( - {dashboard && } + {dashboard && dashboard.uid && } ) : null, index: -2, diff --git a/public/app/features/dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx b/public/app/features/dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx index 7ce42744241..1ad5ca3a233 100644 --- a/public/app/features/dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx +++ b/public/app/features/dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx @@ -76,12 +76,6 @@ export function DashboardEditPaneRenderer({ editPane, dashboard, isDocked }: Pro data-testid={selectors.pages.Dashboard.Sidebar.optionsButton} active={selectedObject === dashboard ? true : false} /> - {/* dashboard.openV2SchemaEditor()} - /> */} )}