From 9736e1a77197d04abdb920d1f64075af09f28c1b Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 29 Aug 2022 14:16:23 +0200 Subject: [PATCH] change messages to messagesCount --- admin/src/pages/CreationConfirm.vue | 7 ++----- .../components/Contributions/ContributionListItem.vue | 11 ++++------- frontend/src/graphql/queries.js | 10 +--------- 3 files changed, 7 insertions(+), 21 deletions(-) diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index ffefe5d3f..a85ca6b04 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -95,11 +95,8 @@ export default { this.item = item }, updateState(id) { - this.pendingCreations.find((value) => { - value.state = 'IN_PROGRESS' - value.messageCount = value.messageCount + 1 - return null - }) + this.pendingCreations.find((obj) => obj.id === id).state = 'IN_PROGRESS' + this.pendingCreations.find((obj) => obj.id === id).obj.messagesCount++ }, }, computed: { diff --git a/frontend/src/components/Contributions/ContributionListItem.vue b/frontend/src/components/Contributions/ContributionListItem.vue index 03f025d51..3fd20a5c4 100644 --- a/frontend/src/components/Contributions/ContributionListItem.vue +++ b/frontend/src/components/Contributions/ContributionListItem.vue @@ -52,7 +52,7 @@ > -
+
-
+