DashboardSave: use a feature flag for drawer behavior (#46972)

This commit is contained in:
Ryan McKinley
2022-03-30 10:07:41 -07:00
committed by GitHub
parent f486b54b84
commit edf384c730
11 changed files with 186 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ import { DashNavTimeControls } from '../DashNav/DashNavTimeControls';
import { OptionsPane } from './OptionsPane';
import { SubMenuItems } from 'app/features/dashboard/components/SubMenu/SubMenuItems';
import { SplitPaneWrapper } from 'app/core/components/SplitPaneWrapper/SplitPaneWrapper';
import { SaveDashboardDrawer } from '../SaveDashboard/SaveDashboardDrawer';
import { SaveDashboardProxy } from '../SaveDashboard/SaveDashboardProxy';
import { DashboardPanel } from '../../dashgrid/DashboardPanel';
import { discardPanelChanges, initPanelEditor, updatePanelEditorUIState } from './state/actions';
@@ -145,7 +145,7 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
onSaveDashboard = () => {
appEvents.publish(
new ShowModalReactEvent({
component: SaveDashboardDrawer,
component: SaveDashboardProxy,
props: { dashboard: this.props.dashboard },
})
);