From b833b930bf6643e636bd5d2b8244415cd832db83 Mon Sep 17 00:00:00 2001 From: Gandharv Date: Thu, 14 Jul 2022 07:31:18 +0530 Subject: [PATCH] Show version create popup when deleting a widget on released version (#3485) --- frontend/src/Editor/Editor.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index e4ef606fc1..0e8ea7da85 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -624,6 +624,8 @@ class Editor extends React.Component { skipAutoSave: this.isVersionReleased(), }); this.handleInspectorView(); + } else if (this.isVersionReleased()) { + this.setState({ showCreateVersionModalPrompt: true }); } }; @@ -656,6 +658,8 @@ class Editor extends React.Component { skipAutoSave: this.isVersionReleased(), }); this.handleInspectorView(); + } else { + this.setState({ showCreateVersionModalPrompt: true }); } };