diff --git a/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue b/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue index 5fd9acf49..3a5d6e0b8 100644 --- a/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue +++ b/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue @@ -38,12 +38,12 @@ export default { form: { text: '', }, - isSubmitting: false, + loading: false, } }, methods: { onSubmit(event) { - this.isSubmitting = true + this.loading = true this.$apollo .mutate({ mutation: adminCreateContributionMessage, @@ -57,11 +57,11 @@ export default { this.$emit('update-state', this.contributionId) this.form.text = '' this.toastSuccess(this.$t('message.request')) - this.isSubmitting = false + this.loading = false }) .catch((error) => { this.toastError(error.message) - this.isSubmitting = false + this.loading = false }) }, onReset(event) { @@ -70,7 +70,7 @@ export default { }, computed: { disabled() { - return this.form.text === '' || this.isSubmitting + return this.form.text === '' || this.loading }, }, }