|
|
@@ -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,
|
|
|
),
|
|
|
)
|
|
|
}
|