Tobias Jeger pushed to branch feature/cmng-psp1 at cms-community / hippo-addon-channel-manager
Commits: bab4b4a3 by Tobias Jeger at 2016-03-09T12:08:06+01:00 CHANNELMGR-487: supply the rendering mount id whet setting the "composermode" in order to make CM-originated back-end calls independent of preview iframe-originated ones. - - - - - 2 changed files: - frontend-ng/src/angularjs/api/hst.service.js - frontend-ng/src/angularjs/api/session.service.js Changes: ===================================== frontend-ng/src/angularjs/api/hst.service.js ===================================== --- a/frontend-ng/src/angularjs/api/hst.service.js +++ b/frontend-ng/src/angularjs/api/hst.service.js @@ -39,8 +39,8 @@ export class HstService { this.config = ConfigService; } - initializeSession(hostname) { - return this.doGet(this.config.rootUuid, 'composermode', hostname) + initializeSession(hostname, mountId) { + return this.doGet(this.config.rootUuid, 'composermode', hostname, mountId) .then((response) => !!(response && response.data && response.data.canWrite)); } ===================================== frontend-ng/src/angularjs/api/session.service.js ===================================== --- a/frontend-ng/src/angularjs/api/session.service.js +++ b/frontend-ng/src/angularjs/api/session.service.js @@ -24,7 +24,7 @@ export class SessionService { initialize(channel) { return this.HstService - .initializeSession(channel.hostname) + .initializeSession(channel.hostname, channel.mountId) .then((canWrite) => { this.canWrite = canWrite; return channel; View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/bab4b4a3fc9b1aa6488611b1e3a721c0414b77d4
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn