diff --git a/client/src/app/tabs/bpmn/BpmnEditor.js b/client/src/app/tabs/bpmn/BpmnEditor.js index 05ec7565ac..f71f068754 100644 --- a/client/src/app/tabs/bpmn/BpmnEditor.js +++ b/client/src/app/tabs/bpmn/BpmnEditor.js @@ -691,17 +691,6 @@ export class BpmnEditor extends CachedComponent { return this.handleLayoutChange(newLayout); } - if (action === 'resetProperties') { - const newLayout = { - propertiesPanel: { - ...PROPERTIES_PANEL_DEFAULT_LAYOUT, - open: true - } - }; - - return this.handleLayoutChange(newLayout); - } - if (action === 'zoomIn') { action = 'stepZoom'; diff --git a/client/src/app/tabs/bpmn/__tests__/BpmnEditorSpec.js b/client/src/app/tabs/bpmn/__tests__/BpmnEditorSpec.js index 49ddcd9195..e981d5c70e 100644 --- a/client/src/app/tabs/bpmn/__tests__/BpmnEditorSpec.js +++ b/client/src/app/tabs/bpmn/__tests__/BpmnEditorSpec.js @@ -1865,29 +1865,6 @@ describe('', function() { }); }); - - it('should reset properties panel', async function() { - - // given - const onLayoutChangedSpy = sinon.spy(); - const { - instance - } = await renderEditor(diagramXML, { - onLayoutChanged: onLayoutChangedSpy - }); - - // when - instance.triggerAction('resetProperties'); - - // then - expect(onLayoutChangedSpy).to.be.calledOnceWith({ - propertiesPanel: { - open: true, - width: 280 - } - }); - }); - }); diff --git a/client/src/app/tabs/bpmn/getBpmnWindowMenu.js b/client/src/app/tabs/bpmn/getBpmnWindowMenu.js index 7c6c4d364b..d948844547 100644 --- a/client/src/app/tabs/bpmn/getBpmnWindowMenu.js +++ b/client/src/app/tabs/bpmn/getBpmnWindowMenu.js @@ -45,9 +45,5 @@ function getPropertiesPanelEntries({ propertiesPanel }) { label: 'Toggle Properties Panel', accelerator: 'CommandOrControl+P', action: 'toggleProperties' - }, { - label: 'Reset Properties Panel', - accelerator: 'CommandOrControl+Shift+P', - action: 'resetProperties' } ] : []; } diff --git a/client/src/app/tabs/cloud-bpmn/BpmnEditor.js b/client/src/app/tabs/cloud-bpmn/BpmnEditor.js index 18f3159c86..f17727242b 100644 --- a/client/src/app/tabs/cloud-bpmn/BpmnEditor.js +++ b/client/src/app/tabs/cloud-bpmn/BpmnEditor.js @@ -654,17 +654,6 @@ export class BpmnEditor extends CachedComponent { return this.handleLayoutChange(newLayout); } - if (action === 'resetProperties') { - const newLayout = { - propertiesPanel: { - ...PROPERTIES_PANEL_DEFAULT_LAYOUT, - open: true - } - }; - - return this.handleLayoutChange(newLayout); - } - if (action === 'zoomIn') { action = 'stepZoom'; diff --git a/client/src/app/tabs/cloud-bpmn/__tests__/BpmnEditorSpec.js b/client/src/app/tabs/cloud-bpmn/__tests__/BpmnEditorSpec.js index 3eb3443a12..703277c69a 100644 --- a/client/src/app/tabs/cloud-bpmn/__tests__/BpmnEditorSpec.js +++ b/client/src/app/tabs/cloud-bpmn/__tests__/BpmnEditorSpec.js @@ -1787,29 +1787,6 @@ describe('cloud-bpmn - ', function() { }); }); - - it('should reset properties panel', async function() { - - // given - const onLayoutChangedSpy = sinon.spy(); - const { - instance - } = await renderEditor(diagramXML, { - onLayoutChanged: onLayoutChangedSpy - }); - - // when - instance.triggerAction('resetProperties'); - - // then - expect(onLayoutChangedSpy).to.be.calledOnceWith({ - propertiesPanel: { - open: true, - width: 280 - } - }); - }); - }); diff --git a/client/src/app/tabs/cloud-dmn/DmnEditor.js b/client/src/app/tabs/cloud-dmn/DmnEditor.js index b08664e31d..f372d01edb 100644 --- a/client/src/app/tabs/cloud-dmn/DmnEditor.js +++ b/client/src/app/tabs/cloud-dmn/DmnEditor.js @@ -697,17 +697,6 @@ export class DmnEditor extends CachedComponent { return handleLayoutChange(newLayout); } - if (action === 'resetProperties') { - const newLayout = { - propertiesPanel: { - ...PROPERTIES_PANEL_DEFAULT_LAYOUT, - open: true - } - }; - - return handleLayoutChange(newLayout); - } - if (action === 'zoomIn') { action = 'stepZoom'; diff --git a/client/src/app/tabs/cloud-dmn/__tests__/DmnEditorSpec.js b/client/src/app/tabs/cloud-dmn/__tests__/DmnEditorSpec.js index b8e7474bbf..45fb72ad26 100644 --- a/client/src/app/tabs/cloud-dmn/__tests__/DmnEditorSpec.js +++ b/client/src/app/tabs/cloud-dmn/__tests__/DmnEditorSpec.js @@ -1852,29 +1852,6 @@ describe('', function() { }); }); - - it('should reset properties panel', async function() { - - // given - const onLayoutChangedSpy = sinon.spy(); - const { - instance - } = await renderEditor(diagramXML, { - onLayoutChanged: onLayoutChangedSpy - }); - - // when - instance.triggerAction('resetProperties'); - - // then - expect(onLayoutChangedSpy).to.be.calledOnceWith({ - propertiesPanel: { - open: true, - width: 280 - } - }); - }); - }); diff --git a/client/src/app/tabs/cmmn/CmmnEditor.js b/client/src/app/tabs/cmmn/CmmnEditor.js index f1d40a6630..ee80d2b022 100644 --- a/client/src/app/tabs/cmmn/CmmnEditor.js +++ b/client/src/app/tabs/cmmn/CmmnEditor.js @@ -406,17 +406,6 @@ export class CmmnEditor extends CachedComponent { return handleLayoutChange(newLayout); } - if (action === 'resetProperties') { - const newLayout = { - propertiesPanel: { - width: 280, - open: true - } - }; - - return handleLayoutChange(newLayout); - } - if (action === 'zoomIn') { action = 'stepZoom'; diff --git a/client/src/app/tabs/cmmn/__tests__/CmmnEditorSpec.js b/client/src/app/tabs/cmmn/__tests__/CmmnEditorSpec.js index 2be2f30253..3ddd7fe29a 100644 --- a/client/src/app/tabs/cmmn/__tests__/CmmnEditorSpec.js +++ b/client/src/app/tabs/cmmn/__tests__/CmmnEditorSpec.js @@ -832,29 +832,6 @@ describe('', function() { }); }); - - it('should reset properties panel', async function() { - - // given - const onLayoutChangedSpy = sinon.spy(); - const { - instance - } = await renderEditor(diagramXML, { - onLayoutChanged: onLayoutChangedSpy - }); - - // when - instance.triggerAction('resetProperties'); - - // then - expect(onLayoutChangedSpy).to.be.calledOnceWith({ - propertiesPanel: { - open: true, - width: 280 - } - }); - }); - }); diff --git a/client/src/app/tabs/cmmn/getCmmnWindowMenu.js b/client/src/app/tabs/cmmn/getCmmnWindowMenu.js index 6b5a91b5b8..6b017a5914 100644 --- a/client/src/app/tabs/cmmn/getCmmnWindowMenu.js +++ b/client/src/app/tabs/cmmn/getCmmnWindowMenu.js @@ -45,9 +45,5 @@ function getPropertiesPanelEntries({ propertiesPanel }) { label: 'Toggle Properties Panel', accelerator: 'CommandOrControl+P', action: 'toggleProperties' - }, { - label: 'Reset Properties Panel', - accelerator: 'CommandOrControl+Shift+P', - action: 'resetProperties' } ] : []; } diff --git a/client/src/app/tabs/dmn/DmnEditor.js b/client/src/app/tabs/dmn/DmnEditor.js index 8a83d585ba..1b798df1cb 100644 --- a/client/src/app/tabs/dmn/DmnEditor.js +++ b/client/src/app/tabs/dmn/DmnEditor.js @@ -698,17 +698,6 @@ export class DmnEditor extends CachedComponent { return handleLayoutChange(newLayout); } - if (action === 'resetProperties') { - const newLayout = { - propertiesPanel: { - ...PROPERTIES_PANEL_DEFAULT_LAYOUT, - open: true - } - }; - - return handleLayoutChange(newLayout); - } - if (action === 'zoomIn') { action = 'stepZoom'; diff --git a/client/src/app/tabs/dmn/__tests__/DmnEditorSpec.js b/client/src/app/tabs/dmn/__tests__/DmnEditorSpec.js index 5d5f6875d2..3efb4acbda 100644 --- a/client/src/app/tabs/dmn/__tests__/DmnEditorSpec.js +++ b/client/src/app/tabs/dmn/__tests__/DmnEditorSpec.js @@ -1853,29 +1853,6 @@ describe('', function() { }); }); - - it('should reset properties panel', async function() { - - // given - const onLayoutChangedSpy = sinon.spy(); - const { - instance - } = await renderEditor(diagramXML, { - onLayoutChanged: onLayoutChangedSpy - }); - - // when - instance.triggerAction('resetProperties'); - - // then - expect(onLayoutChangedSpy).to.be.calledOnceWith({ - propertiesPanel: { - open: true, - width: 280 - } - }); - }); - }); diff --git a/client/src/app/tabs/dmn/getDmnWindowMenu.js b/client/src/app/tabs/dmn/getDmnWindowMenu.js index ac15c03bd7..30f81f7736 100644 --- a/client/src/app/tabs/dmn/getDmnWindowMenu.js +++ b/client/src/app/tabs/dmn/getDmnWindowMenu.js @@ -46,10 +46,6 @@ function getPropertiesPanelEntries({ propertiesPanel }) { label: 'Toggle Properties Panel', accelerator: 'CommandOrControl+P', action: 'toggleProperties' - }, { - label: 'Reset Properties Panel', - accelerator: 'CommandOrControl+Shift+P', - action: 'resetProperties' } ] : []; }