Compare commits

...

2 Commits

Author SHA1 Message Date
Torkel Ödegaard
d666c4e2a7 Update 2025-12-18 17:11:01 +01:00
Torkel Ödegaard
5012b4079e Dashboards: Do not show alert rules button for new dashboads 2025-12-18 16:19:33 +01:00
3 changed files with 1 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ export function initAlerting() {
component: ({ dashboard }) => component: ({ dashboard }) =>
alertingEnabled ? ( alertingEnabled ? (
<Suspense fallback={null} key="alert-rules-button"> <Suspense fallback={null} key="alert-rules-button">
{dashboard && <AlertRulesToolbarButton dashboardUid={dashboard.uid} />} {dashboard && dashboard.uid && <AlertRulesToolbarButton dashboardUid={dashboard.uid} />}
</Suspense> </Suspense>
) : null, ) : null,
index: -2, index: -2,

View File

@@ -76,12 +76,6 @@ export function DashboardEditPaneRenderer({ editPane, dashboard, isDocked }: Pro
data-testid={selectors.pages.Dashboard.Sidebar.optionsButton} data-testid={selectors.pages.Dashboard.Sidebar.optionsButton}
active={selectedObject === dashboard ? true : false} active={selectedObject === dashboard ? true : false}
/> />
{/* <Sidebar.Button
tooltip={t('dashboard.sidebar.edit-schema.tooltip', 'Edit as code')}
title={t('dashboard.sidebar.edit-schema.title', 'Code')}
icon="brackets-curly"
onClick={() => dashboard.openV2SchemaEditor()}
/> */}
<Sidebar.Divider /> <Sidebar.Divider />
</> </>
)} )}

View File

@@ -5392,10 +5392,6 @@
"title": "Options", "title": "Options",
"tooltip": "Dashboard options" "tooltip": "Dashboard options"
}, },
"edit-schema": {
"title": "Code",
"tooltip": "Edit as code"
},
"export": { "export": {
"title": "Export", "title": "Export",
"unsaved-modal": { "unsaved-modal": {