From dea07c2bcd014b4c67aeed2d1eda7b836fae161b Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 22 Jul 2022 10:12:53 +0200 Subject: [PATCH] fix: cancel delete contribution --- .../components/Contributions/ContributionListItem.vue | 11 +++-------- frontend/src/pages/TransactionLink.vue | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/Contributions/ContributionListItem.vue b/frontend/src/components/Contributions/ContributionListItem.vue index e19153d10..a6a49f8b3 100644 --- a/frontend/src/components/Contributions/ContributionListItem.vue +++ b/frontend/src/components/Contributions/ContributionListItem.vue @@ -95,14 +95,9 @@ export default { }, methods: { deleteContribution(item) { - this.$bvModal - .msgBoxConfirm(this.$t('contribution.delete')) - .then((value) => { - this.$emit('delete-contribution', item) - }) - .catch((_err) => { - // An error occurred - }) + this.$bvModal.msgBoxConfirm(this.$t('contribution.delete')).then(async (value) => { + if (value) this.$emit('delete-contribution', item) + }) }, }, } diff --git a/frontend/src/pages/TransactionLink.vue b/frontend/src/pages/TransactionLink.vue index 699c350ae..57236b55c 100644 --- a/frontend/src/pages/TransactionLink.vue +++ b/frontend/src/pages/TransactionLink.vue @@ -109,7 +109,7 @@ export default { return this.$route.params.code.search(/^CL-/) === 0 }, itemType() { - // link wurde gelöscht: am, von + // link is deleted: at, from if (this.linkData.deletedAt) { // eslint-disable-next-line vue/no-side-effects-in-computed-properties this.redeemedBoxText = this.$t('gdd_per_link.link-deleted', {