From 8b9b6f1f9ae152aa3d647efb65c28bbc0482d677 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 9 Nov 2022 17:15:29 +0100 Subject: [PATCH] fix clean display for all functions --- .../components/ContributionLink/ContributionLink.vue | 1 + .../ContributionLink/ContributionLinkForm.vue | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/admin/src/components/ContributionLink/ContributionLink.vue b/admin/src/components/ContributionLink/ContributionLink.vue index 1bff30226..c8963d3ab 100644 --- a/admin/src/components/ContributionLink/ContributionLink.vue +++ b/admin/src/components/ContributionLink/ContributionLink.vue @@ -72,6 +72,7 @@ export default { if (this.visible) { this.$root.$emit('bv::toggle::collapse', 'newContribution') this.editContributionLink = false + this.contributionLinkData = {} } }, editContributionLinkData(data) { diff --git a/admin/src/components/ContributionLink/ContributionLinkForm.vue b/admin/src/components/ContributionLink/ContributionLinkForm.vue index ff7af8f7d..85b9a3e95 100644 --- a/admin/src/components/ContributionLink/ContributionLinkForm.vue +++ b/admin/src/components/ContributionLink/ContributionLinkForm.vue @@ -112,7 +112,7 @@ {{ $t('contributionLink.clear') }} - + {{ $t('contributionLink.close') }} @@ -208,14 +208,7 @@ export default { }, watch: { contributionLinkData() { - this.form.name = this.contributionLinkData.name - this.form.memo = this.contributionLinkData.memo - this.form.amount = this.contributionLinkData.amount - this.form.validFrom = this.contributionLinkData.validFrom - this.form.validTo = this.contributionLinkData.validTo - this.form.cycle = this.contributionLinkData.cycle - this.form.maxPerCycle = this.contributionLinkData.maxPerCycle - this.form.maxAmountPerMonth = this.contributionLinkData.maxAmountPerMonth + this.form = this.contributionLinkData }, }, }