Browse Source

remove in dev pages from menus

Olivier Massot 1 year ago
parent
commit
43903f4ee7
1 changed files with 26 additions and 4 deletions
  1. 26 4
      services/layout/menuBuilder/configurationMenuBuilder.ts

+ 26 - 4
services/layout/menuBuilder/configurationMenuBuilder.ts

@@ -30,24 +30,46 @@ export default class ConfigurationMenuBuilder extends AbstractMenuBuilder {
       )
     }
 
+    // if (this.ability.can('display', 'cmf_licence_page')) {
+    //   children.push(
+    //     this.createItem(
+    //       'cmf_licence_generate',
+    //       undefined,
+    //       '/cmf_licence_structure',
+    //       MENU_LINK_TYPE.INTERNAL,
+    //     ),
+    //   )
+    // }
+
     if (this.ability.can('display', 'cmf_licence_page')) {
       children.push(
         this.createItem(
           'cmf_licence_generate',
           undefined,
-          '/cmf_licence_structure',
-          MENU_LINK_TYPE.INTERNAL,
+          '/licence_cmf/organization',
+          MENU_LINK_TYPE.V1,
         ),
       )
     }
 
+    // if (this.ability.can('display', 'parameters_page')) {
+    //   children.push(
+    //     this.createItem(
+    //       'parameters',
+    //       undefined,
+    //       `/parameters`,
+    //       MENU_LINK_TYPE.INTERNAL,
+    //     ),
+    //   )
+    // }
+
     if (this.ability.can('display', 'parameters_page')) {
       children.push(
         this.createItem(
           'parameters',
           undefined,
-          `/parameters`,
-          MENU_LINK_TYPE.INTERNAL,
+          `/main/edit/parameters/${this.organizationProfile.id}`,
+          MENU_LINK_TYPE.V1,
         ),
       )
     }