1 parent f89d915 commit 2c020ffCopy full SHA for 2c020ff
1 file changed
web/pages/bulk-messages/index.vue
@@ -153,16 +153,17 @@ export default Vue.extend({
153
this.$store
154
.dispatch('sendBulkMessages', this.formFile)
155
.then(() => {
156
- this.$router.push({ name: 'threads' })
+ setTimeout(() => {
157
+ this.loading = false
158
+ this.$router.push({ name: 'threads' })
159
+ }, 2000)
160
})
161
.catch((error: AxiosError) => {
162
this.errorTitle = capitalize(
163
error.response?.data?.message ??
164
'Error while sending bulk messages',
165
)
166
this.errorMessages = getErrorMessages(error)
- })
- .finally(() => {
167
this.loading = false
168
169
},
0 commit comments