Ran Shem Tov pushed to branch feature/CC-CHANNELMGR-1506 at cms-community / hippo-addon-channel-manager
Commits: b0e4057c by Ran ShemTov at 2017-10-23T13:14:23+02:00 CHANNELMGR-1506 Extract close channel message to its own property to allow the change of it - - - - - 1 changed file: - frontend-ng/src/app/channel/sidePanels/rightSidePanel/rightSidePanel.controller.js Changes: ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/rightSidePanel.controller.js ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/rightSidePanel.controller.js +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/rightSidePanel.controller.js @@ -63,7 +63,7 @@ class RightSidePanelCtrl { this._onOpen(); }, // onClose - () => this.beforeStateChange('SAVE_CHANGES_ON_CLOSE_CHANNEL').then(() => this._onClose())); + () => this.beforeStateChange(this.closeChannelMessage).then(() => this._onClose())); } $onInit() { @@ -91,6 +91,7 @@ class RightSidePanelCtrl { this.editing = true; }); } + this.closeChannelMessage = 'SAVE_CHANGES_ON_CLOSE_CHANNEL'; } setCreateState() { View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/b0e4057cfb5010937a9793299d3091a9f9727406 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/b0e4057cfb5010937a9793299d3091a9f9727406 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn