From 9ef575d6b140a4c768e4330a18eaa3b04346b483 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 9 Feb 2022 09:50:17 +0100 Subject: [PATCH] open creations table --- .../components/Tables/OpenCreationsTable.vue | 103 ++++++++++++++++++ admin/src/mixins/toggleRowDetails.js | 3 + admin/src/pages/CreationConfirm.vue | 59 ++++++---- 3 files changed, 146 insertions(+), 19 deletions(-) create mode 100644 admin/src/components/Tables/OpenCreationsTable.vue diff --git a/admin/src/components/Tables/OpenCreationsTable.vue b/admin/src/components/Tables/OpenCreationsTable.vue new file mode 100644 index 000000000..2bdef1d60 --- /dev/null +++ b/admin/src/components/Tables/OpenCreationsTable.vue @@ -0,0 +1,103 @@ + + + + diff --git a/admin/src/mixins/toggleRowDetails.js b/admin/src/mixins/toggleRowDetails.js index 43a7eceac..d73810ae7 100644 --- a/admin/src/mixins/toggleRowDetails.js +++ b/admin/src/mixins/toggleRowDetails.js @@ -3,6 +3,7 @@ export const toggleRowDetails = { return { slotIndex: 0, openRow: null, + creationUserData: {}, } }, methods: { @@ -20,11 +21,13 @@ export const toggleRowDetails = { row.toggleDetails() this.slotIndex = index this.openRow = row + this.creationUserData = row.item } } else { row.toggleDetails() this.slotIndex = index this.openRow = row + this.creationUserData = row.item } }, }, diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index ac1a1594c..fe352373e 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -1,17 +1,30 @@