change variable name to our standard naming

This commit is contained in:
mahula 2022-11-29 11:05:26 +01:00 committed by GitHub
parent 06fd7c9b9a
commit 403e68480c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
},
},
}