Navigate to group upon creation
This commit is contained in:
parent
fbb4692ba5
commit
4d475c3cd4
|
@ -59,7 +59,8 @@
|
||||||
|
|
||||||
async function saveGroup(group) {
|
async function saveGroup(group) {
|
||||||
try {
|
try {
|
||||||
await groups.actions.save(group)
|
group = await groups.actions.save(group)
|
||||||
|
$goto(`./${group._id}`)
|
||||||
notifications.success(`User group created successfully`)
|
notifications.success(`User group created successfully`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error(`Failed to save user group`)
|
notifications.error(`Failed to save user group`)
|
||||||
|
|
|
@ -28,6 +28,7 @@ export function createGroupsStore() {
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
return group
|
||||||
},
|
},
|
||||||
|
|
||||||
delete: async group => {
|
delete: async group => {
|
||||||
|
|
Loading…
Reference in New Issue