From 56bc852968b087cece37b381418ca149701622b8 Mon Sep 17 00:00:00 2001 From: elweyn Date: Fri, 26 Nov 2021 08:02:05 +0100 Subject: [PATCH] Merge the two changes. --- admin/src/components/CreationFormular.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/admin/src/components/CreationFormular.vue b/admin/src/components/CreationFormular.vue index 9d5cf94ef..16a3c6aab 100644 --- a/admin/src/components/CreationFormular.vue +++ b/admin/src/components/CreationFormular.vue @@ -277,19 +277,26 @@ export default { }) .then((result) => { this.$emit('update-user-data', this.item, result.data.createPendingCreation) + this.$toasted.success( + `Offene schöpfung (${this.value} GDD) für ${this.item.email} wurde gespeichert, liegen zur bestätigung bereit`, + ) this.$store.commit('openCreationsPlus', 1) - this.$toasted.success('Schöpfung eingereicht') + this.submitObj = null + // das creation Formular reseten + this.$refs.creationForm.reset() + // Den geschöpften Wert auf o setzen + this.value = 0 }) .catch((error) => { this.$toasted.error(error.message) + this.submitObj = null + // das creation Formular reseten + this.$refs.creationForm.reset() + // Den geschöpften Wert auf o setzen + this.value = 0 }) } } - // das absendeergebniss im string ansehen - // das creation Formular reseten - this.$refs.creationForm.reset() - // Den geschöpften Wert auf o setzen - this.value = 0 }, }, }