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