Explorar o código

menu site internet

Vincent GUFFON %!s(int64=4) %!d(string=hai) anos
pai
achega
8673f8da69
Modificáronse 2 ficheiros con 3 adicións e 8 borrados
  1. 2 7
      composables/layout/Menus/websiteMenu.ts
  2. 1 1
      lang/layout/fr-FR.js

+ 2 - 7
composables/layout/Menus/websiteMenu.ts

@@ -28,15 +28,10 @@ class WebsiteMenu extends BaseMenu implements Menu {
    * @return {ItemMenu | null}
    */
   getMenu (): ItemMenu | null {
-    const children: ItemsMenu = []
-
     if (!this.$store.state.profile.organization.website && this.$store.state.profile.access.isAdminAccess) {
-      children.push(this.constructMenu(this.$store.state.profile.organization.name, undefined, this.getWebsite(this.$store.state.profile.organization), false, undefined, true))
-      children.push(this.constructMenu('simple_modification', 'fa-globe-europe', this.getWebsite(this.$store.state.profile.organization), false, undefined, true))
-      children.push(this.constructMenu('advanced_modification', 'fa-globe-europe', this.getWebsite(this.$store.state.profile.organization) + '/typo3', false, undefined, true))
+      return this.constructMenu('advanced_modification', 'fa-globe-europe', this.getWebsite(this.$store.state.profile.organization) + '/typo3', false, undefined, true)
     }
-
-    return children.length > 0 ? this.constructMenu('website','fa-globe-europe',  undefined, undefined, children) : null
+    return null
   }
 
   /**

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

@@ -125,7 +125,7 @@ export default (context, locale) => {
     right_menu: 'Droits version 5.9',
     tree_menu: 'Gestion de l\'arbre',
     website: 'Site internet',
-    advanced_modification: 'Modifications avancées',
+    advanced_modification: 'Administration site internet',
     simple_modification: 'Modifications simplifiées',
     create: 'Créer',
     help_access: 'Accès aide',