1
0

chore: redirect to new project after creating from store

This commit is contained in:
kolaente
2023-04-12 12:07:50 +02:00
parent 652db56d42
commit 6b824a49ab
3 changed files with 8 additions and 11 deletions

View File

@ -477,14 +477,10 @@ async function newProject() {
if (currentProject.value === null) {
return
}
const newProject = await projectStore.createProject(new ProjectModel({
await projectStore.createProject(new ProjectModel({
title: query.value,
}))
success({ message: t('project.create.createdSuccess')})
await router.push({
name: 'project.index',
params: { projectId: newProject.id },
})
}
async function newTeam() {