Skip to content

Commit

Permalink
feat: only show + button when not collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
r00gm committed Dec 18, 2024
1 parent 94251ef commit 59f4125
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/editor-ui/src/components/Projects/ProjectNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ const showAddFirstProject = computed(
/>
</ElMenu>
<hr v-if="projectsStore.isTeamProjectFeatureEnabled" class="mt-m mb-m" />
<N8nText :class="[$style.projectsLabel, { [$style.collapsed]: props.collapsed }]" tag="h3" bold>
<span v-if="!props.collapsed && projectsStore.isTeamProjectFeatureEnabled">{{
locale.baseText('projects.menu.title')
}}</span>
<N8nText
v-if="!props.collapsed && projectsStore.isTeamProjectFeatureEnabled"
:class="[$style.projectsLabel]"
tag="h3"
bold
>
<span>{{ locale.baseText('projects.menu.title') }}</span>
<N8nButton
v-if="projectsStore.canCreateProjects"
icon="plus"
Expand Down Expand Up @@ -173,10 +176,6 @@ const showAddFirstProject = computed(
padding: 0;
margin-left: 0;
justify-content: center;
.plusBtn {
display: block;
}
}
}
Expand Down

0 comments on commit 59f4125

Please sign in to comment.