Canh Ngo pushed to branch feature/cmng-psp1 at cms-community / hippo-addon-channel-manager
Commits: 8d92cbb4 by Canh Ngo at 2016-04-05T12:56:13+02:00 CHANNELMGR-552: reloaded the channel-store whenever switching-channel event is sent from AngularJS app When editing a channel at the first time, the channel-store in ExtJs is outdated because the 'edit-channel' request creating the '-preview' channel is invoked from AngularJs. The 'switch-channel' event is sent from AngularJs with the '-preview' channel id, so the channel-store in ExtJs should be reloaded to update this change. - - - - - 22c88608 by Canh Ngo at 2016-04-05T14:25:00+02:00 CHANNELMGR-552: Merge branch 'feature/cmng-psp1-CHANNELMGR-552' into feature/cmng-psp1 - - - - - 1 changed file: - frontend/src/main/resources/org/onehippo/cms7/channelmanager/channeleditor/ChannelEditor.js Changes: ===================================== frontend/src/main/resources/org/onehippo/cms7/channelmanager/channeleditor/ChannelEditor.js ===================================== --- a/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channeleditor/ChannelEditor.js +++ b/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channeleditor/ChannelEditor.js @@ -73,8 +73,8 @@ _setChannel: function(channelId) { return new Hippo.Future(function (success, failure) { - this.channelStoreFuture.when(function (config) { - var channelRecord = config.store.getById(channelId); + this._reloadChannels().when(function (channelStore) { + var channelRecord = channelStore.getById(channelId); if (channelRecord) { this._initialize(channelRecord.json); success(channelRecord); View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/compare/e7c44bc1208d1b0b4fb9f09c63c3f33cc7ab46df...22c8860892884c0d32b42bc11fb8d87b4eaa4fdd
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn