From d13b341bae85dc3a0d1215a0a33da24a2a0915c3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 19 Dec 2021 13:03:34 +0100 Subject: [PATCH] Switching between two form additions is clean --- admin/src/components/UserTable.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index a6e6fa357..b597c5a1d 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -213,6 +213,10 @@ export default { }, methods: { rowDetailsToogle(row, details) { + if (this.showCreationFormular === false) { + this.showCreationFormular = true + return + } if (details) { row.toggleDetails() this.showCreationFormular = null @@ -233,11 +237,10 @@ export default { } if (details) { row.toggleDetails() - this.showCreationFormular === null + this.showCreationFormular = null } if (!details) { row.toggleDetails() - this.showCreationFormular === false if (this.$refs.showing_registermail_detals_true !== undefined) { this.$refs.showing_registermail_detals_true.click() }