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,14 +95,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
deleteContribution(item) {
|
deleteContribution(item) {
|
||||||
this.$bvModal
|
this.$bvModal.msgBoxConfirm(this.$t('contribution.delete')).then(async (value) => {
|
||||||
.msgBoxConfirm(this.$t('contribution.delete'))
|
if (value) this.$emit('delete-contribution', item)
|
||||||
.then((value) => {
|
})
|
||||||
this.$emit('delete-contribution', item)
|
|
||||||
})
|
|
||||||
.catch((_err) => {
|
|
||||||
// An error occurred
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,7 +109,7 @@ export default {
|
|||||||
return this.$route.params.code.search(/^CL-/) === 0
|
return this.$route.params.code.search(/^CL-/) === 0
|
||||||
},
|
},
|
||||||
itemType() {
|
itemType() {
|
||||||
// link wurde gelöscht: am, von
|
// link is deleted: at, from
|
||||||
if (this.linkData.deletedAt) {
|
if (this.linkData.deletedAt) {
|
||||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||||
this.redeemedBoxText = this.$t('gdd_per_link.link-deleted', {
|
this.redeemedBoxText = this.$t('gdd_per_link.link-deleted', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user