Commit 44604cfa by Krzysztof Dąbrowski Committed by GitHub

Dashboad: Remove dashboard title check (#23343)

parent ac0beb69
import React from 'react'; import React from 'react';
import { NEW_DASHBOARD_DEFAULT_TITLE } from './forms/SaveDashboardAsForm';
import { SaveProvisionedDashboard } from './SaveProvisionedDashboard'; import { SaveProvisionedDashboard } from './SaveProvisionedDashboard';
import { SaveDashboardAsModal } from './SaveDashboardAsModal'; import { SaveDashboardAsModal } from './SaveDashboardAsModal';
import { SaveDashboardModalProps } from './types'; import { SaveDashboardModalProps } from './types';
...@@ -7,7 +6,7 @@ import { SaveDashboardModal } from './SaveDashboardModal'; ...@@ -7,7 +6,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 || dashboard.version === 0; const isNew = 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