Improve workspace creation
This commit is contained in:
parent
c0f01f4b84
commit
d0dd1cfe39
|
@ -73,7 +73,8 @@ class WorkspaceController extends Controller
|
|||
|
||||
return $this->success([
|
||||
'message' => 'Workspace created.',
|
||||
'workspace_id' => $workspace->id
|
||||
'workspace_id' => $workspace->id,
|
||||
'workspace' => new WorkspaceResource($workspace)
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -201,10 +201,11 @@ const isUrl = (str) => {
|
|||
return !!pattern.test(str)
|
||||
}
|
||||
const createWorkspace = () => {
|
||||
form.post('/open/workspaces/create').then((response) => {
|
||||
fetchAllWorkspaces()
|
||||
form.post('/open/workspaces/create').then((data) => {
|
||||
workspacesStore.save(data.workspace)
|
||||
workspacesStore.currentId = data.workspace.id
|
||||
workspaceModal.value = false
|
||||
useAlert().success('Workspace successfully created.')
|
||||
useAlert().success('Workspace successfully created! You are now editing settings for your new workspace.')
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue