fix: cancel delete contribution

This commit is contained in:
ogerly 2022-07-22 10:12:53 +02:00
parent 030e059b78
commit dea07c2bcd
2 changed files with 4 additions and 9 deletions

View File

@ -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)
})
},
},
}

View File

@ -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', {