Joeri de Gooijer pushed to branch feature/CHANNELMGR-1417 at cms-community / 
hippo-addon-channel-manager


Commits:
bea90771 by Joeri de Gooijer at 2017-08-04T15:33:17+02:00
CHANNELMGR-1417 Pass abstract page name provided by user to hst

- - - - -


2 changed files:

- frontend-ng/src/angularjs/channel/page/actions/pageActions.service.js
- frontend-ng/src/angularjs/services/siteMapItem.service.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/page/actions/pageActions.service.js
=====================================
--- a/frontend-ng/src/angularjs/channel/page/actions/pageActions.service.js
+++ b/frontend-ng/src/angularjs/channel/page/actions/pageActions.service.js
@@ -168,7 +168,7 @@ class PageActionsService extends MenuService {
   _abstractifyPage() {
     const siteMapItem = this.SiteMapItemService.get();
     this._showAbstractifyDialog(siteMapItem.name)
-      .then(() => this.SiteMapItemService.abstractifyItem());
+      .then(providedName => 
this.SiteMapItemService.abstractifyItem(providedName));
   }
 
   _showAbstractifyDialog(name) {


=====================================
frontend-ng/src/angularjs/services/siteMapItem.service.js
=====================================
--- a/frontend-ng/src/angularjs/services/siteMapItem.service.js
+++ b/frontend-ng/src/angularjs/services/siteMapItem.service.js
@@ -63,8 +63,8 @@ class SiteMapItemService {
     return this.HstService.doPost(null, this.siteMapId, 'delete', 
this.item.id);
   }
 
-  abstractifyItem() {
-    return this.HstService.doPost(null, this.siteMapId, 'abstractify', 
this.item.id);
+  abstractifyItem(providedName) {
+    return this.HstService.doPost({ data: providedName }, this.siteMapId, 
'abstractify', this.item.id);
   }
 
   updateItem(item, siteMapId) {



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/bea90771a1e4e812b2f701f3380f898dfcb6414a

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/bea90771a1e4e812b2f701f3380f898dfcb6414a
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

Reply via email to