Fix a PropType issue

This commit is contained in:
Lucas Verney 2018-07-26 09:14:14 +02:00
parent b9315a83cd
commit 79b4625dc9
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<Modal v-model="error"> <Modal v-model="hasError">
<v-card> <v-card>
<v-card-title class="subheading">{{ $t('reportDialog.unableToSendTitle') }}</v-card-title> <v-card-title class="subheading">{{ $t('reportDialog.unableToSendTitle') }}</v-card-title>
@ -11,7 +11,7 @@
<v-btn <v-btn
color="red darken-1" color="red darken-1"
@click="error = null" @click="hasError = false"
dark dark
large large
role="button" role="button"
@ -64,7 +64,7 @@ export default {
}, },
data() { data() {
return { return {
error: null, hasError: false,
REPORT_TYPES, REPORT_TYPES,
REPORT_TYPES_ORDER, REPORT_TYPES_ORDER,
}; };
@ -91,7 +91,7 @@ export default {
return this.$store.dispatch('saveReport', report) return this.$store.dispatch('saveReport', report)
.catch((exc) => { .catch((exc) => {
console.error(exc); console.error(exc);
this.error = exc; this.hasError = true;
this.$store.dispatch('saveUnsentReport', { report }); this.$store.dispatch('saveUnsentReport', { report });
}); });
}, },