fix(quick-actions): nothing happening on team click (#3186)
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/3186 Reviewed-by: konrad <k@knt.li> Co-authored-by: WofWca <wofwca@protonmail.com> Co-committed-by: WofWca <wofwca@protonmail.com>
This commit is contained in:
parent
9b3e185dd4
commit
149ceaf2e5
@ -428,7 +428,7 @@ function searchTeams() {
|
|||||||
teamService.getAll({}, { s: t }),
|
teamService.getAll({}, { s: t }),
|
||||||
)
|
)
|
||||||
const teamsResult = await Promise.all(teamSearchPromises)
|
const teamsResult = await Promise.all(teamSearchPromises)
|
||||||
foundTeams.value = teamsResult.flatMap((team) => {
|
foundTeams.value = teamsResult.flat().map((team) => {
|
||||||
team.title = team.name
|
team.title = team.name
|
||||||
return team
|
return team
|
||||||
})
|
})
|
||||||
@ -458,6 +458,13 @@ async function doAction(type: ACTION_TYPE, item: DoAction) {
|
|||||||
params: { id: (item as DoAction<ITask>).id },
|
params: { id: (item as DoAction<ITask>).id },
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case ACTION_TYPE.TEAM:
|
||||||
|
closeQuickActions()
|
||||||
|
await router.push({
|
||||||
|
name: 'teams.edit',
|
||||||
|
params: { id: (item as DoAction<ITeam>).id },
|
||||||
|
})
|
||||||
|
break
|
||||||
case ACTION_TYPE.CMD:
|
case ACTION_TYPE.CMD:
|
||||||
query.value = ''
|
query.value = ''
|
||||||
selectedCmd.value = item as DoAction<Command>
|
selectedCmd.value = item as DoAction<Command>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user