diff --git a/packages/editor-ui/src/components/Projects/ProjectNavigation.vue b/packages/editor-ui/src/components/Projects/ProjectNavigation.vue index e14328b01e..16509b7828 100644 --- a/packages/editor-ui/src/components/Projects/ProjectNavigation.vue +++ b/packages/editor-ui/src/components/Projects/ProjectNavigation.vue @@ -32,6 +32,7 @@ const home = computed(() => ({ to: { name: VIEWS.HOMEPAGE }, }, })); + const addProject = computed(() => ({ id: 'addProject', label: locale.baseText('projects.menu.addProject'), @@ -102,6 +103,10 @@ const displayProjects = computed(() => { }); }); +const canCreateProjects = computed( + () => projectsStore.hasPermissionToCreateProjects && projectsStore.isTeamProjectFeatureEnabled, +); + const goToUpgrade = async () => { await uiStore.goToUpgrade('rbac', 'upgrade-rbac'); }; @@ -123,14 +128,13 @@ onMounted(async () => { data-test-id="project-home-menu-item" /> -
- +
+ {{ locale.baseText('projects.menu.title') }} @@ -155,9 +159,7 @@ onMounted(async () => { /> @@ -189,13 +191,7 @@ onMounted(async () => { -
+