From 2ea0a18075907be5f021a04bafd131664e32f692 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 19 Dec 2021 12:56:58 +0100 Subject: [PATCH] show an hide creation or confirm registermail formular --- .../ConfirmRegisterMailFormular.vue | 21 +++ admin/src/components/UserTable.vue | 121 ++++++++++++++---- 2 files changed, 118 insertions(+), 24 deletions(-) create mode 100644 admin/src/components/ConfirmRegisterMailFormular.vue diff --git a/admin/src/components/ConfirmRegisterMailFormular.vue b/admin/src/components/ConfirmRegisterMailFormular.vue new file mode 100644 index 000000000..859cca881 --- /dev/null +++ b/admin/src/components/ConfirmRegisterMailFormular.vue @@ -0,0 +1,21 @@ + + diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index 01d3dc5ae..7560a0215 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -49,15 +49,34 @@ @@ -67,27 +86,30 @@ {{ type }} - - +
+ + +
+ import CreationFormular from '../components/CreationFormular.vue' import EditCreationFormular from '../components/EditCreationFormular.vue' +import ConfirmRegisterMailFormular from '../components/ConfirmRegisterMailFormular.vue' import { confirmPendingCreation } from '../graphql/confirmPendingCreation' export default { @@ -168,9 +191,11 @@ export default { components: { CreationFormular, EditCreationFormular, + ConfirmRegisterMailFormular, }, data() { return { + showCreationFormular: null, creationUserData: {}, overlay: false, overlayBookmarkType: '', @@ -187,6 +212,54 @@ export default { } }, methods: { + rowDetailsToogle(row, details) { + console.log('rowDetailsToogle row', row) + console.log('rowDetailsToogle details', details) + console.log('this.showCreationFormular', this.showCreationFormular) + + + // if ( this.showCreationFormular === false) { + // this.showCreationFormular = true + // return + // }else { + + if (details) { + row.toggleDetails() + this.showCreationFormular = null + + } + if (!details) { + row.toggleDetails() + this.showCreationFormular = true + if (this.$refs.showing_detals_true !== undefined) { + this.$refs.showing_detals_true.click() + + } + } + // } + }, + + rowDetailsToogleRegisterMail(row, details) { + console.log('rowDetailsToogleRegisterMail row', row) + console.log('rowDetailsToogleRegisterMail details', details) + console.log('this.showCreationFormular', this.showCreationFormular) + + if ( this.showCreationFormular === true) { + this.showCreationFormular = false + return + } + if (details) { + row.toggleDetails() + 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() + } + } + }, overlayShow(bookmarkType, item) { this.overlay = true this.overlayBookmarkType = bookmarkType