mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
DashboardSave: Add new dashboard check (#23104)
This commit is contained in:
parent
5cdb8f8e44
commit
046d9c1af4
@ -7,7 +7,7 @@ import { SaveDashboardModal } from './SaveDashboardModal';
|
||||
|
||||
export const SaveDashboardModalProxy: React.FC<SaveDashboardModalProps> = ({ dashboard, onDismiss, onSaveSuccess }) => {
|
||||
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 modalProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user