Ran Shem Tov pushed to branch master at cms-community / 
hippo-addon-channel-manager


Commits:
727fe601 by Ran ShemTov at 2017-08-08T10:48:12+02:00
CHANNELMGR-1419 Mimic the disabling behaviour of overlay toggle for the 
components tab, to be disabled when a channel is not editable

- - - - -


3 changed files:

- frontend-ng/src/angularjs/channel/channel.html
- 
frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.component.js
- frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.html


Changes:

=====================================
frontend-ng/src/angularjs/channel/channel.html
=====================================
--- a/frontend-ng/src/angularjs/channel/channel.html
+++ b/frontend-ng/src/angularjs/channel/channel.html
@@ -67,6 +67,7 @@
   <md-content layout="row"
               flex>
     <left-side-panel layout="row"
+                     
is-configuration-locked="channelCtrl.isConfigurationLocked()"
                      
components-visible="channelCtrl.isComponentsOverlayDisplayed">
     </left-side-panel>
 


=====================================
frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.component.js
=====================================
--- 
a/frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.component.js
+++ 
b/frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.component.js
@@ -20,6 +20,7 @@ import LeftSidePanelCtrl from './leftSidePanel.controller';
 const leftSidePanelComponent = {
   bindings: {
     componentsVisible: '=',
+    isConfigurationLocked: '<',
   },
   controller: LeftSidePanelCtrl,
   template,


=====================================
frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.html
=====================================
--- 
a/frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.html
+++ 
b/frontend-ng/src/angularjs/channel/sidePanels/leftSidePanel/leftSidePanel.html
@@ -38,7 +38,7 @@
         </md-list-item>
       </md-list>
     </md-tab>
-    <md-tab label="{{ ::'LEFT_SIDE_PANEL_TAB_COMPONENTS' | translate }}">
+    <md-tab label="{{ ::'LEFT_SIDE_PANEL_TAB_COMPONENTS' | translate }}" 
ng-disabled="$ctrl.isConfigurationLocked">
       <component-catalog components="$ctrl.getCatalog()"></component-catalog>
     </md-tab>
   </md-tabs>



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

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