Commit 3be46855 by Dominik Prokop Committed by Torkel Ödegaard

DashboardSave: Add new dashboard check (#23104)


(cherry picked from commit 046d9c1a)
parent aa227c5c
...@@ -7,7 +7,7 @@ import { SaveDashboardModal } from './SaveDashboardModal'; ...@@ -7,7 +7,7 @@ import { SaveDashboardModal } from './SaveDashboardModal';
export const SaveDashboardModalProxy: React.FC<SaveDashboardModalProps> = ({ dashboard, onDismiss, onSaveSuccess }) => { export const SaveDashboardModalProxy: React.FC<SaveDashboardModalProps> = ({ dashboard, onDismiss, onSaveSuccess }) => {
const isProvisioned = dashboard.meta.provisioned; const isProvisioned = dashboard.meta.provisioned;
const isNew = dashboard.title === NEW_DASHBOARD_DEFAULT_TITLE; const isNew = dashboard.title === NEW_DASHBOARD_DEFAULT_TITLE || dashboard.version === 0;
const isChanged = dashboard.version > 0; const isChanged = dashboard.version > 0;
const modalProps = { const modalProps = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment