refactor
This commit is contained in:
@@ -42,11 +42,11 @@ const detach = async (role, permission, refresh) => {
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response.isConfirmed) return
|
if (!response.isConfirmed)
|
||||||
|
return
|
||||||
|
|
||||||
Inertia.on('finish', () => refresh())
|
Inertia.on('finish', () => refresh())
|
||||||
|
Inertia.patch(route('superuser.role.detach', { role: role.id, permission: permission.id }))
|
||||||
return Inertia.patch(route('superuser.role.detach', { role: role.id, permission: permission.id }))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const store = () => {
|
const store = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user