File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ const to = (slug) => {
63
63
}
64
64
65
65
const items = computed (() => {
66
- const { team : slug } = route .params
67
-
68
66
const profile = {
69
67
label: user .value .username || user .value .email ,
70
68
avatar: user .value .avatar ,
@@ -82,7 +80,7 @@ const items = computed(() => {
82
80
slug: team .slug ,
83
81
label: team .name ,
84
82
avatar: team .avatar ?.url || true ,
85
- active: activeTeam .value === team .slug || team . slug === slug ,
83
+ active: activeTeam .value === team .slug ,
86
84
to: to (team .slug ),
87
85
click () {
88
86
activeTeam .value = team .slug
@@ -103,7 +101,7 @@ const items = computed(() => {
103
101
slot: ' reverse-icon'
104
102
},
105
103
{
106
- label: slug === user .value .username ? ' User settings' : ' Team settings' ,
104
+ label: activeTeam . value === user .value .username ? ' User settings' : ' Team settings' ,
107
105
icon: ' heroicons-outline:cog' ,
108
106
to: { name: ' @team-settings' , params: { team: activeTeam .value } },
109
107
slot: ' reverse-icon'
You can’t perform that action at this time.
0 commit comments