From 16f373c1201db75d2265b340edcbde6c2de7a62c Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 20 Dec 2021 09:38:55 +0100 Subject: [PATCH 1/2] add details_edit_true on editCreationUserTable --- admin/src/components/UserTable.vue | 51 ++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index 4692cab49..ffb696967 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -40,8 +40,8 @@ @@ -247,9 +247,9 @@ export default { } if (details) { row.toggleDetails() - this.showCreationFormular = null - this.showConfirmRegisterMailFormular = null - this.showCreationTransactionListFormular = null + // this.showCreationFormular = null + // this.showConfirmRegisterMailFormular = null + // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -269,9 +269,9 @@ export default { } if (details) { row.toggleDetails() - this.showCreationFormular = null - this.showConfirmRegisterMailFormular = null - this.showCreationTransactionListFormular = null + // this.showCreationFormular = null + // this.showConfirmRegisterMailFormular = null + // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -290,9 +290,9 @@ export default { } if (details) { row.toggleDetails() - this.showCreationFormular = null - this.showConfirmRegisterMailFormular = null - this.showCreationTransactionListFormular = null + // this.showCreationFormular = null + // this.showConfirmRegisterMailFormular = null + // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -364,13 +364,30 @@ export default { this.$toasted.error(error.message) }) }, - editCreationUserTable(row, rowItem) { - if (!row.detailsShowing) { - this.creationUserData = rowItem - } else { - this.creationUserData = {} + editCreationUserTable(row, details) { + if ( + this.showConfirmRegisterMailFormular === true || + this.showCreationTransactionListFormular === true + ) { + this.showCreationFormular = true + this.showConfirmRegisterMailFormular = false + this.showCreationTransactionListFormular = false + return + } + if (details) { + row.toggleDetails() + // this.showCreationFormular = null + // this.showConfirmRegisterMailFormular = null + // this.showCreationTransactionListFormular = null + } + if (!details) { + row.toggleDetails() + this.showCreationFormular = true + this.creationUserData = row.item + if (this.$refs.details_edit_true !== undefined) { + this.$refs.details_edit_true.click() + } } - row.toggleDetails() }, updateCreationData(data) { this.creationUserData.amount = data.amount From 39a4705ef4d99267530b45cc20dff8eefa98ee25 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 20 Dec 2021 09:40:17 +0100 Subject: [PATCH 2/2] remove unused lines --- admin/src/components/UserTable.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index ffb696967..335c65309 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -247,9 +247,6 @@ export default { } if (details) { row.toggleDetails() - // this.showCreationFormular = null - // this.showConfirmRegisterMailFormular = null - // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -269,9 +266,6 @@ export default { } if (details) { row.toggleDetails() - // this.showCreationFormular = null - // this.showConfirmRegisterMailFormular = null - // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -290,9 +284,6 @@ export default { } if (details) { row.toggleDetails() - // this.showCreationFormular = null - // this.showConfirmRegisterMailFormular = null - // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails() @@ -376,9 +367,6 @@ export default { } if (details) { row.toggleDetails() - // this.showCreationFormular = null - // this.showConfirmRegisterMailFormular = null - // this.showCreationTransactionListFormular = null } if (!details) { row.toggleDetails()