diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 86113fa..1eacb3b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,13 +4,11 @@
-
-
-
-
+
+
@@ -157,8 +155,6 @@
-
-
@@ -182,7 +178,9 @@
-
+
+
+
true
diff --git a/web/src/components/admin/UserAssignPermsPanel.vue b/web/src/components/admin/UserAssignPermsPanel.vue
index 1fa84cb..8218150 100644
--- a/web/src/components/admin/UserAssignPermsPanel.vue
+++ b/web/src/components/admin/UserAssignPermsPanel.vue
@@ -1,5 +1,6 @@
- !val && emits('close')">
+ !val && emits('close')">
@@ -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) {
diff --git a/web/src/components/admin/UserDetailPanel.vue b/web/src/components/admin/UserDetailPanel.vue
index 6dac3a1..41afbb0 100644
--- a/web/src/components/admin/UserDetailPanel.vue
+++ b/web/src/components/admin/UserDetailPanel.vue
@@ -1,5 +1,6 @@
- !val && emits('close')">
+ !val && emits('close')">
diff --git a/web/src/components/admin/UserFactorPanel.vue b/web/src/components/admin/UserFactorPanel.vue
index e7bbd80..3eebcb3 100644
--- a/web/src/components/admin/UserFactorPanel.vue
+++ b/web/src/components/admin/UserFactorPanel.vue
@@ -1,6 +1,6 @@
!val && emits('close')"
+ @update:model-value="(val: boolean) => !val && emits('close')"
:loading="reverting">
diff --git a/web/src/views/admin/users.vue b/web/src/views/admin/users.vue
index 10af471..6b00a4b 100644
--- a/web/src/views/admin/users.vue
+++ b/web/src/views/admin/users.vue
@@ -72,10 +72,11 @@
error = val" />
- error = val" />
+ @error="(val: string) => error = val" />
+ error = val" />
- error = null">
+ error = null">
{{ error }}