Vincent GUFFON 4 年之前
父節點
當前提交
09f438d974
共有 3 個文件被更改,包括 15 次插入2 次删除
  1. 8 0
      config/abilities/pages/parameters.yaml
  2. 1 0
      lang/layout/fr-FR.js
  3. 6 2
      use/layout/Menus/configurationMenu.ts

+ 8 - 0
config/abilities/pages/parameters.yaml

@@ -55,6 +55,14 @@
       organization:
         - {function: hasModule, parameters: ['GeneralConfig']}
 
+  template_systems_page:
+    action: 'display'
+    services:
+      access:
+        - {function: hasAbility, parameters: [{action: 'read', subject: 'general-config'}]}
+      organization:
+        - {function: hasModule, parameters: ['TemplateMessages']}
+
   billing_settings_page:
     action: 'display'
     services:

+ 1 - 0
lang/layout/fr-FR.js

@@ -104,5 +104,6 @@ export default (context, locale) => {
     date_choose: 'Choix de la période',
     my_list: 'Mes listes',
     searchList: 'Rechercher parmis mes listes personnalisées',
+    template_systems: "Mails système",
   })
 }

+ 6 - 2
use/layout/Menus/configurationMenu.ts

@@ -30,7 +30,7 @@ class ConfigurationMenu extends BaseMenu implements Menu{
     const children:ItemsMenu = [];
 
     if (this.$ability.can('display', 'organization_page')) {
-      children.push(this.constructMenu('organization_page', undefined,'/organization/edit'))
+      children.push(this.constructMenu('organization_page', undefined, `/main/organization/${this.$store.state.profile.organization.id}/dashboard`, true))
     }
 
     if (this.$ability.can('display', 'cmf_licence_page')) {
@@ -38,7 +38,7 @@ class ConfigurationMenu extends BaseMenu implements Menu{
     }
 
     if (this.$ability.can('display', 'parameters_page')) {
-      children.push(this.constructMenu('parameters', undefined,'/configuration/parameters'))
+      children.push(this.constructMenu('parameters', undefined,`/main/edit/parameters/${this.$store.state.profile.organization.id}`))
     }
 
     if (this.$ability.can('display', 'place_page')) {
@@ -57,6 +57,10 @@ class ConfigurationMenu extends BaseMenu implements Menu{
       children.push(this.constructMenu('activities', undefined,'/activities/list/', true))
     }
 
+    if (this.$ability.can('display', 'template_systems_page')) {
+      children.push(this.constructMenu('template_systems', undefined,'/template_systems/list/', true))
+    }
+
     if (this.$ability.can('display', 'billing_settings_page')) {
       children.push(this.constructMenu('billing_settings', undefined,'/billing_settings/' + this.$store.state.profile.organization.id, true))
     }