diff --git a/admin/src/components/ContributionLink.vue b/admin/src/components/ContributionLink.vue
index 893e202f4..91c8ce95b 100644
--- a/admin/src/components/ContributionLink.vue
+++ b/admin/src/components/ContributionLink.vue
@@ -15,7 +15,10 @@
{{ $t('contributionLink.contributionLinks') }}
-
+
@@ -24,6 +27,7 @@
v-if="count > 0"
:items="items"
@editContributionLinkData="editContributionLinkData"
+ @get-contribution-links="getContributionLinks"
/>
-
+
@@ -34,7 +34,7 @@
{{ modalData ? modalData.name : '' }}
- {{ modalData }}
+ {{ modalData.memo ? modalData.memo : '' }}
@@ -70,28 +70,30 @@ export default {
'edit',
'show',
],
- modalData: null,
- modalDataLink: null,
+ modalData: {},
}
},
methods: {
- deleteContributionLink() {
- this.$bvModal.msgBoxConfirm(this.$t('contributionLink.deleteNow')).then(async (value) => {
- if (value)
- await this.$apollo
- .mutate({
- mutation: deleteContributionLink,
- variables: {
- id: this.id,
- },
- })
- .then(() => {
- this.toastSuccess('TODO: request message deleted ')
- })
- .catch((err) => {
- this.toastError(err.message)
- })
- })
+ deleteContributionLink(id, name) {
+ this.$bvModal
+ .msgBoxConfirm(this.$t('contributionLink.deleteNow', { name: name }))
+ .then(async (value) => {
+ if (value)
+ await this.$apollo
+ .mutate({
+ mutation: deleteContributionLink,
+ variables: {
+ id: id,
+ },
+ })
+ .then(() => {
+ this.toastSuccess('TODO: request message deleted ')
+ this.$emit('get-contribution-links')
+ })
+ .catch((err) => {
+ this.toastError(err.message)
+ })
+ })
},
editContributionLink(row) {
this.$emit('editContributionLinkData', row)
diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json
index c977a613e..6b50d328d 100644
--- a/admin/src/locales/de.json
+++ b/admin/src/locales/de.json
@@ -7,7 +7,7 @@
"contributionLinks": "Beitragslinks",
"create": "Anlegen",
"cycle": "Zyklus",
- "deleteNow": "Automatische Creations wirklich löschen?",
+ "deleteNow": "Automatische Creations '{name}' wirklich löschen?",
"maximumAmount": "maximaler Betrag",
"maxPerCycle": "Wiederholungen",
"memo": "Nachricht",
diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json
index e99305e08..2474b6cd2 100644
--- a/admin/src/locales/en.json
+++ b/admin/src/locales/en.json
@@ -7,7 +7,7 @@
"contributionLinks": "Contribution Links",
"create": "Create",
"cycle": "Cycle",
- "deleteNow": "Do you really delete automatic creations?",
+ "deleteNow": "Do you really delete automatic creations '{name}'?",
"maximumAmount": "Maximum amount",
"maxPerCycle": "Repetition",
"memo": "Memo",
diff --git a/admin/src/pages/Overview.vue b/admin/src/pages/Overview.vue
index 4c4ba47fa..cfa247b8e 100644
--- a/admin/src/pages/Overview.vue
+++ b/admin/src/pages/Overview.vue
@@ -28,7 +28,11 @@
-
+