diff --git a/src/visualizers/panels/InteractiveEditor/InteractiveEditorControl.js b/src/visualizers/panels/InteractiveEditor/InteractiveEditorControl.js index 35152239d..fdb4039f3 100644 --- a/src/visualizers/panels/InteractiveEditor/InteractiveEditorControl.js +++ b/src/visualizers/panels/InteractiveEditor/InteractiveEditorControl.js @@ -179,6 +179,7 @@ define([ /* * * * * * * * Visualizer life cycle callbacks * * * * * * * */ destroy () { this._detachClientEventListeners(); + this._widget.destroy(); } _attachClientEventListeners () { diff --git a/src/visualizers/widgets/InteractiveEditor/InteractiveEditorWidget.js b/src/visualizers/widgets/InteractiveEditor/InteractiveEditorWidget.js index e2fbca2ae..697008c79 100644 --- a/src/visualizers/widgets/InteractiveEditor/InteractiveEditorWidget.js +++ b/src/visualizers/widgets/InteractiveEditor/InteractiveEditorWidget.js @@ -93,6 +93,13 @@ define([ async createInteractiveSession(computeId, config) { this.session = await Session.new(computeId, config); } + + destroy() { + const features = this.getCapabilities(); + if (features.save) { + DeepForge.unregisterAction('Save'); + } + } } return InteractiveEditorWidget;