From 05a4b9505d7d2c454cb2862db1a843b0de7b31a8 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Nov 2022 12:25:57 +0100 Subject: [PATCH] fix load error --- admin/src/components/ContributionLink/ContributionLink.vue | 1 + admin/src/components/ContributionLink/ContributionLinkForm.vue | 1 + admin/src/components/ContributionLink/ContributionLinkList.vue | 1 + 3 files changed, 3 insertions(+) diff --git a/admin/src/components/ContributionLink/ContributionLink.vue b/admin/src/components/ContributionLink/ContributionLink.vue index c8963d3ab..ca82fcd42 100644 --- a/admin/src/components/ContributionLink/ContributionLink.vue +++ b/admin/src/components/ContributionLink/ContributionLink.vue @@ -34,6 +34,7 @@ :items="items" @editContributionLinkData="editContributionLinkData" @get-contribution-links="$emit('get-contribution-links')" + @closeContributionForm="closeContributionForm" />
{{ $t('contributionLink.noContributionLinks') }}
diff --git a/admin/src/components/ContributionLink/ContributionLinkForm.vue b/admin/src/components/ContributionLink/ContributionLinkForm.vue index 85b9a3e95..2afd8e1c5 100644 --- a/admin/src/components/ContributionLink/ContributionLinkForm.vue +++ b/admin/src/components/ContributionLink/ContributionLinkForm.vue @@ -197,6 +197,7 @@ export default { }, onReset() { this.$refs.contributionLinkForm.reset() + this.form = {} this.form.validFrom = null this.form.validTo = null }, diff --git a/admin/src/components/ContributionLink/ContributionLinkList.vue b/admin/src/components/ContributionLink/ContributionLinkList.vue index c99821097..f67feced2 100644 --- a/admin/src/components/ContributionLink/ContributionLinkList.vue +++ b/admin/src/components/ContributionLink/ContributionLinkList.vue @@ -108,6 +108,7 @@ export default { }) .then(() => { this.toastSuccess(this.$t('contributionLink.deleted')) + this.$emit('closeContributionForm') this.$emit('get-contribution-links') }) .catch((err) => {