Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add delay before redirecting after sending SMS

Acho Arnold2c020ffc3cbf
diff --git a/web/pages/bulk-messages/index.vue b/web/pages/bulk-messages/index.vue
index 50ebbcc8..91329599 100644
--- a/web/pages/bulk-messages/index.vue
+++ b/web/pages/bulk-messages/index.vue
@@ -153,7 +153,10 @@ export default Vue.extend({
this.$store
.dispatch('sendBulkMessages', this.formFile)
.then(() => {
- this.$router.push({ name: 'threads' })
+ setTimeout(() => {
+ this.loading = false
+ this.$router.push({ name: 'threads' })
+ }, 2000)
})
.catch((error: AxiosError) => {
this.errorTitle = capitalize(
@@ -161,8 +164,6 @@ export default Vue.extend({
'Error while sending bulk messages',
)
this.errorMessages = getErrorMessages(error)
- })
- .finally(() => {
this.loading = false
})
},