diff --git a/frontend/src/components/TransactionLinks/TransactionLink.vue b/frontend/src/components/TransactionLinks/TransactionLink.vue index 966fc3f54..d6dfb84f0 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.vue +++ b/frontend/src/components/TransactionLinks/TransactionLink.vue @@ -18,7 +18,7 @@ {{ $moment(item.validUntil).fromNow() }} kopieren - löschen + löschen @@ -41,7 +41,8 @@ export default { }, }) .then((result) => { - console.log(result.data) + this.toastSuccess('Link gelöscht') + this.$emit('update-list-transaction-links') }) .catch((err) => { this.toastError(err.message) @@ -58,6 +59,16 @@ export default { this.toastError(this.$t('gdd_per_link.not-copied')) }) }, + deleteLink(id) { + this.$bvModal + .msgBoxConfirm('Den Link löschen?') + .then(() => { + this.deleteTransactionLink(id) + }) + .catch((err) => { + console.log(err) + }) + }, }, }