menubar: hide toggleButton when using Standalone
authorMathieu Lutfy <mathieu@symbiotic.coop>
Tue, 11 Jul 2023 20:34:30 +0000 (16:34 -0400)
committerMathieu Lu <mathieu@symbiotic.coop>
Tue, 11 Jul 2023 20:35:43 +0000 (16:35 -0400)
js/crm.menubar.js

index f6d1bb9cba1f252533aa9ae061287c33f0929b9e..65fe533bf3a12628c1eccf47b91578b60e46e011 100644 (file)
@@ -8,7 +8,7 @@
     data: null,
     settings: {collapsibleBehavior: 'accordion'},
     position: 'over-cms-menu',
-    toggleButton: true,
+    toggleButton: (CRM.config.userFramework != 'Standalone'),
     attachTo: (CRM.menubar && CRM.menubar.position === 'above-crm-container') ? '#crm-container' : 'body',
     initialize: function() {
       var cache = CRM.cache.get('menubar');