- Admins can no longer delete any users or roles - Additionally, the name of a role in edit mode is now read-only - extra new SetupConfirmation.vue compoenent for verifying qrcode 2FA - adapted ci.yaml
This commit is contained in:
parent
4efa53673f
commit
b2dce0259a
9 changed files with 262 additions and 206 deletions
|
@ -49,14 +49,13 @@ const form = useForm({
|
|||
search: props.filters.search,
|
||||
});
|
||||
|
||||
const formDelete = useForm({});
|
||||
|
||||
// const formDelete = useForm({});
|
||||
// async function destroy(id) {
|
||||
const destroy = async (id) => {
|
||||
if (confirm('Are you sure you want to delete?')) {
|
||||
await formDelete.delete(stardust.route('settings.user.destroy', [id]));
|
||||
}
|
||||
};
|
||||
// const destroy = async (id) => {
|
||||
// if (confirm('Are you sure you want to delete?')) {
|
||||
// await formDelete.delete(stardust.route('settings.user.destroy', [id]));
|
||||
// }
|
||||
// };
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -132,7 +131,7 @@ const destroy = async (id) => {
|
|||
:icon="mdiSquareEditOutline"
|
||||
small
|
||||
/>
|
||||
<BaseButton v-if="can.delete" color="danger" :icon="mdiTrashCan" small @click="destroy(user.id)" />
|
||||
<!-- <BaseButton v-if="can.delete" color="danger" :icon="mdiTrashCan" small @click="destroy(user.id)" /> -->
|
||||
</BaseButtons>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue