Work in progress for form create guess user

This commit is contained in:
Julien Nahum
2023-12-25 19:57:00 +01:00
parent 5df3245543
commit b4365b5e30
4 changed files with 78 additions and 121 deletions

View File

@@ -61,6 +61,7 @@ export default {
setup () {
return {
authStore: useAuthStore(),
formsStore: useFormsStore(),
workspaceStore: useWorkspacesStore()
}
},
@@ -88,6 +89,9 @@ export default {
const workspaces = await fetchAllWorkspaces()
this.workspaceStore.set(workspaces.data.value)
// Load forms
this.formsStore.loadAll(this.workspaceStore.currentId)
// Redirect home.
this.redirect()
},