Joeri de Gooijer pushed to branch bugfix/cm-overlay-CHANNELMGR-1094 at 
cms-community / hippo-addon-channel-manager


Commits:
58394c28 by Joeri de Gooijer at 2017-01-13T15:59:07+01:00
CHANNELMGR-1094 Hide menu links in add mode

- - - - -


1 changed file:

- frontend-ng/src/angularjs/channel/hippoIframe/overlay/overlay.service.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/hippoIframe/overlay/overlay.service.js
=====================================
--- a/frontend-ng/src/angularjs/channel/hippoIframe/overlay/overlay.service.js
+++ b/frontend-ng/src/angularjs/channel/hippoIframe/overlay/overlay.service.js
@@ -303,9 +303,9 @@ class OverlayService {
       case 'content-link':
         return !this._isEditMode() && this.DomService.isVisible(boxElement);
       case 'menu-link':
-        return this._isEditMode() && this.DomService.isVisible(boxElement);
+        return this._isEditMode() && !this.isInAddMode && 
this.DomService.isVisible(boxElement);
       default:
-        return this._isEditMode();
+        return this._isEditMode() && !this.isInAddMode;
     }
   }
 



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/58394c28614c516cda29d5e952d16e66d052efb1
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to