ソースを参照

correction sur le menu site web

Vincent GUFFON 4 年 前
コミット
4b5da0263f
1 ファイル変更7 行追加4 行削除
  1. 7 4
      use/layout/Menus/websiteMenu.ts

+ 7 - 4
use/layout/Menus/websiteMenu.ts

@@ -31,11 +31,12 @@ class WebsiteMenu extends BaseMenu implements Menu {
     const children: ItemsMenu = []
     const children: ItemsMenu = []
 
 
     if (!this.$store.state.profile.organization.website && this.$store.state.profile.access.isAdminAccess) {
     if (!this.$store.state.profile.organization.website && this.$store.state.profile.access.isAdminAccess) {
-      children.push(this.constructMenu('fa-globe-europe', 'simple_modification', this.getWebsite(this.$store.state.profile.organization), false, undefined, true))
-      children.push(this.constructMenu('fa-globe-europe', 'advanced_modification', this.getWebsite(this.$store.state.profile.organization) + '/typo3', false, undefined, true))
+      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 children.length > 0 ? this.constructMenu('fa-globe-europe', 'website', undefined, undefined, children) : null
+    return children.length > 0 ? this.constructMenu('website','fa-globe-europe',  undefined, undefined, children) : null
   }
   }
 
 
   /**
   /**
@@ -48,7 +49,9 @@ class WebsiteMenu extends BaseMenu implements Menu {
     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(this.$store.state.profile.organization.name, undefined, this.getWebsite(this.$store.state.profile.organization), false, undefined, true))
 
 
     _.each(this.$store.state.profile.organization.parents, (parent) => {
     _.each(this.$store.state.profile.organization.parents, (parent) => {
-      children.push(this.constructMenu(parent.name, undefined, this.getWebsite(parent), false, undefined, true))
+      if(parent.id != process.env.OPENTALENT_MANAGER_ID){
+        children.push(this.constructMenu(parent.name, undefined, this.getWebsite(parent), false, undefined, true))
+      }
     })
     })
 
 
     return children.length > 0 ? this.constructMenu('website', 'fa-globe-europe', undefined, undefined, children) : null
     return children.length > 0 ? this.constructMenu('website', 'fa-globe-europe', undefined, undefined, children) : null