mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix: cancel delete contribution
This commit is contained in:
parent
030e059b78
commit
dea07c2bcd
@ -95,13 +95,8 @@ 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)
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@ -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', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user