Skip to content

Commit 40f0603

Browse files
committed
fix: reactivity on dropdown for settings
1 parent 8fbfd38 commit 40f0603

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/molecules/TeamsDropdown.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ const to = (slug) => {
6363
}
6464
6565
const items = computed(() => {
66-
const { team: slug } = route.params
67-
6866
const profile = {
6967
label: user.value.username || user.value.email,
7068
avatar: user.value.avatar,
@@ -82,7 +80,7 @@ const items = computed(() => {
8280
slug: team.slug,
8381
label: team.name,
8482
avatar: team.avatar?.url || true,
85-
active: activeTeam.value === team.slug || team.slug === slug,
83+
active: activeTeam.value === team.slug,
8684
to: to(team.slug),
8785
click () {
8886
activeTeam.value = team.slug
@@ -103,7 +101,7 @@ const items = computed(() => {
103101
slot: 'reverse-icon'
104102
},
105103
{
106-
label: slug === user.value.username ? 'User settings' : 'Team settings',
104+
label: activeTeam.value === user.value.username ? 'User settings' : 'Team settings',
107105
icon: 'heroicons-outline:cog',
108106
to: { name: '@team-settings', params: { team: activeTeam.value } },
109107
slot: 'reverse-icon'

0 commit comments

Comments
 (0)