From ab5baf00d4bb815f889bc6495b393e2aa40c035e Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 16 Dec 2021 17:06:02 +0100 Subject: [PATCH 01/58] unused elements removed --- admin/src/components/NavBar.vue | 22 +++++++++++++--------- admin/src/pages/Creation.vue | 1 - admin/src/pages/Overview.vue | 22 ---------------------- 3 files changed, 13 insertions(+), 32 deletions(-) diff --git a/admin/src/components/NavBar.vue b/admin/src/components/NavBar.vue index aaff9d61d..e99307f3e 100644 --- a/admin/src/components/NavBar.vue +++ b/admin/src/components/NavBar.vue @@ -1,30 +1,34 @@ 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 From bb703f9fa87cbdfd0b27ee8dbbc5d78110098361 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 19 Dec 2021 12:58:22 +0100 Subject: [PATCH 15/58] clean code from creation or confirm registermail formular --- admin/src/components/UserTable.vue | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index 7560a0215..a6e6fa357 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -213,41 +213,24 @@ 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 (this.showCreationFormular === true) { + this.showCreationFormular = false + return + } if (details) { row.toggleDetails() this.showCreationFormular === null From d13b341bae85dc3a0d1215a0a33da24a2a0915c3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 19 Dec 2021 13:03:34 +0100 Subject: [PATCH 16/58] 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() } From 9bc71d1af02ea74dc3b44740ac35030a7a7aad63 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 19 Dec 2021 13:47:30 +0100 Subject: [PATCH 17/58] register mail send style and function added --- .../ConfirmRegisterMailFormular.vue | 36 ++++++++++++++++--- admin/src/components/UserTable.vue | 8 +++-- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/admin/src/components/ConfirmRegisterMailFormular.vue b/admin/src/components/ConfirmRegisterMailFormular.vue index 859cca881..c9ab36d18 100644 --- a/admin/src/components/ConfirmRegisterMailFormular.vue +++ b/admin/src/components/ConfirmRegisterMailFormular.vue @@ -1,7 +1,18 @@ @@ -10,12 +21,29 @@ // import { createPendingCreation } from '../graphql/createPendingCreation' export default { name: 'ConfirmRegisterMail', - props: {}, + props: { + email: { + type: String, + }, + dateLastSend: { + type: String, + }, + }, data() { return {} }, - methods: {}, - created() {}, + methods: { + sendRegisterMail() { + alert( + 'sende wiederholt den ConfirmText an die register E-Mail (' + this.email + ') des User!', + ) + }, + }, } + diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue index 848731a24..8ec9e0f60 100644 --- a/admin/src/components/UserTable.vue +++ b/admin/src/components/UserTable.vue @@ -82,11 +82,10 @@