|
@@ -1,6 +1,7 @@
|
|
|
import AbstractMenuBuilder from '~/services/layout/menuBuilder/abstractMenuBuilder'
|
|
import AbstractMenuBuilder from '~/services/layout/menuBuilder/abstractMenuBuilder'
|
|
|
import {MenuGroup, MenuItem, MenuItems} from "~/types/layout";
|
|
import {MenuGroup, MenuItem, MenuItems} from "~/types/layout";
|
|
|
import {MENU_LINK_TYPE} from "~/types/enum/layout";
|
|
import {MENU_LINK_TYPE} from "~/types/enum/layout";
|
|
|
|
|
+import UrlUtils from "~/services/utils/urlUtils";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Classe pour la construction du Menu Paramètres
|
|
* Classe pour la construction du Menu Paramètres
|
|
@@ -15,15 +16,28 @@ export default class ConfigurationMenuBuilder extends AbstractMenuBuilder {
|
|
|
const children: MenuItems = []
|
|
const children: MenuItems = []
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'organization_page')) {
|
|
if (this.ability.can('display', 'organization_page')) {
|
|
|
- children.push(this.createItem('organization_page', undefined, `/organization`, MENU_LINK_TYPE.V1))
|
|
|
|
|
|
|
+ children.push(
|
|
|
|
|
+ this.createItem(
|
|
|
|
|
+ 'organization_page',
|
|
|
|
|
+ undefined,
|
|
|
|
|
+ UrlUtils.join('/main/organizations', this.organizationProfile.id ?? '', '/dashboard'),
|
|
|
|
|
+ MENU_LINK_TYPE.V1)
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'cmf_licence_page')) {
|
|
if (this.ability.can('display', 'cmf_licence_page')) {
|
|
|
- children.push(this.createItem('cmf_licence_generate', undefined, '/cmf_licence/organization', MENU_LINK_TYPE.V1))
|
|
|
|
|
|
|
+ children.push(this.createItem('cmf_licence_generate', undefined, '/licence_cmf/organization', MENU_LINK_TYPE.V1))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'parameters_page')) {
|
|
if (this.ability.can('display', 'parameters_page')) {
|
|
|
- children.push(this.createItem('parameters', undefined,`/parameters`, MENU_LINK_TYPE.V1))
|
|
|
|
|
|
|
+ children.push(
|
|
|
|
|
+ this.createItem(
|
|
|
|
|
+ 'parameters',
|
|
|
|
|
+ undefined,
|
|
|
|
|
+ UrlUtils.join('/main/edit/parameters', this.organizationProfile.id ?? ''),
|
|
|
|
|
+ MENU_LINK_TYPE.V1
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'place_page')) {
|
|
if (this.ability.can('display', 'place_page')) {
|
|
@@ -47,11 +61,25 @@ export default class ConfigurationMenuBuilder extends AbstractMenuBuilder {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'billing_settings_page')) {
|
|
if (this.ability.can('display', 'billing_settings_page')) {
|
|
|
- children.push(this.createItem('billing_settings', undefined, '/main/edit/billing_settings/' + this.organizationProfile.id, MENU_LINK_TYPE.V1))
|
|
|
|
|
|
|
+ children.push(
|
|
|
|
|
+ this.createItem(
|
|
|
|
|
+ 'billing_settings',
|
|
|
|
|
+ undefined,
|
|
|
|
|
+ UrlUtils.join('/main/edit/billing_settings/', this.organizationProfile.id ?? ''),
|
|
|
|
|
+ MENU_LINK_TYPE.V1
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'online_registration_settings_page')) {
|
|
if (this.ability.can('display', 'online_registration_settings_page')) {
|
|
|
- children.push(this.createItem('online_registration_settings', undefined, '/main/edit/online_registration_settings/' + this.organizationProfile.id, MENU_LINK_TYPE.V1))
|
|
|
|
|
|
|
+ children.push(
|
|
|
|
|
+ this.createItem(
|
|
|
|
|
+ 'online_registration_settings',
|
|
|
|
|
+ undefined,
|
|
|
|
|
+ UrlUtils.join('/main/edit/online_registration_settings/', this.organizationProfile.id ?? ''),
|
|
|
|
|
+ MENU_LINK_TYPE.V1
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.ability.can('display', 'transition_next_year_page')) {
|
|
if (this.ability.can('display', 'transition_next_year_page')) {
|