Commit d0dd1cf 1 parent c0f01f4 commit d0dd1cf Copy full SHA for d0dd1cf
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ public function create(Request $request)
73
73
74
74
return $ this ->success ([
75
75
'message ' => 'Workspace created. ' ,
76
- 'workspace_id ' => $ workspace ->id
76
+ 'workspace_id ' => $ workspace ->id ,
77
+ 'workspace ' => new WorkspaceResource ($ workspace )
77
78
]);
78
79
}
79
80
}
Original file line number Diff line number Diff line change @@ -201,10 +201,11 @@ const isUrl = (str) => {
201
201
return !! pattern .test (str)
202
202
}
203
203
const createWorkspace = () => {
204
- form .post (' /open/workspaces/create' ).then ((response ) => {
205
- fetchAllWorkspaces ()
204
+ form .post (' /open/workspaces/create' ).then ((data ) => {
205
+ workspacesStore .save (data .workspace )
206
+ workspacesStore .currentId = data .workspace .id
206
207
workspaceModal .value = false
207
- useAlert ().success (' Workspace successfully created.' )
208
+ useAlert ().success (' Workspace successfully created! You are now editing settings for your new workspace .' )
208
209
})
209
210
}
210
211
You can’t perform that action at this time.
0 commit comments