🚨 Fix ts lint issue
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<v-dialog class="max-w-[720px]" :model-value="props.data != null" @update:model-value="(val) => !val && emits('close')">
|
||||
<v-dialog class="max-w-[720px]" :model-value="props.data != null"
|
||||
@update:model-value="(val: boolean) => !val && emits('close')">
|
||||
<template v-slot:default="{ isActive }">
|
||||
<v-card title="Assign permissions" :subtitle="`To user @${props.data?.name}`" :loading="submitting">
|
||||
<v-card-text>
|
||||
@ -144,13 +145,13 @@ const submitting = ref(false)
|
||||
async function saveNode() {
|
||||
submitting.value = true
|
||||
const res = await request(`/api/admin/users/${props.data.id}/permissions`, {
|
||||
method: 'PUT',
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": `Bearer ${getAtk()}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
'perm_nodes': perms.value,
|
||||
"perm_nodes": perms.value,
|
||||
}),
|
||||
})
|
||||
if (res.status !== 200) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<v-dialog class="max-w-[720px]" :model-value="props.data != null" @update:model-value="(val) => !val && emits('close')">
|
||||
<v-dialog class="max-w-[720px]" :model-value="props.data != null"
|
||||
@update:model-value="(val: boolean) => !val && emits('close')">
|
||||
<template v-slot:default="{ isActive }">
|
||||
<v-card :title="`User @${props.data?.name}`">
|
||||
<v-card-text>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-dialog class="max-w-[720px]" :model-value="props.data != null"
|
||||
@update:model-value="(val) => !val && emits('close')"
|
||||
@update:model-value="(val: boolean) => !val && emits('close')"
|
||||
:loading="reverting">
|
||||
<template v-slot:default="{ isActive }">
|
||||
<v-card title="Auth Factors" :subtitle="`Of user @${props.data?.name}`">
|
||||
|
@ -72,10 +72,11 @@
|
||||
<user-detail-panel :data="viewingUser" @close="viewingUser = null" />
|
||||
<user-assign-perms-panel :data="assigningPermUser" @close="assigningPermUser = null"
|
||||
@success="readUsers(pagination)"
|
||||
@error="val => error = val" />
|
||||
<user-factor-panel :data="viewingFactorUser" @close="viewingFactorUser = null" @error="val => error = val" />
|
||||
@error="(val: string) => error = val" />
|
||||
<user-factor-panel :data="viewingFactorUser" @close="viewingFactorUser = null"
|
||||
@error="(val: string) => error = val" />
|
||||
|
||||
<v-snackbar :timeout="3000" :model-value="error != null" @update:model-value="_ => error = null">
|
||||
<v-snackbar :timeout="3000" :model-value="error != null" @update:model-value="() => error = null">
|
||||
{{ error }}
|
||||
</v-snackbar>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user