diff --git a/src/components/NavigationOutbox.vue b/src/components/NavigationOutbox.vue index 5c5ba2e0fd..9abafba942 100644 --- a/src/components/NavigationOutbox.vue +++ b/src/components/NavigationOutbox.vue @@ -110,8 +110,8 @@ export default { this.attempts++ this.failedMessaged.map(async (message) => { if (!message.pending) { - promises.push(this.$store.dispatch('outbox/sendMessage', { id: message.id }).catch((err) => { - console.log(err) + promises.push(this.$store.dispatch('outbox/sendMessage', { id: message.id }).catch(() => { + // TODO write pending state })) } return message @@ -120,7 +120,6 @@ export default { this.sending = false }) }, - }, } diff --git a/src/components/Outbox.vue b/src/components/Outbox.vue index ad70f4cca0..e474564d0b 100644 --- a/src/components/Outbox.vue +++ b/src/components/Outbox.vue @@ -29,12 +29,12 @@
-
+
{{ n('mail', '{count} failed message', '{count} failed messages', failedMessages.length, {count: failedMessages.length}) }}
-
+
{{ n('mail', 'Retrying send message', 'Retrying send {count} messages', failedMessages.length, {count: failedMessages.length}) }} @@ -173,7 +173,7 @@ export default { }) .catch(() => { message.pending = false - this.$store.commit('outbox/updateMessage', {message}) + this.$store.commit('outbox/updateMessage', { message }) })) return msg }) diff --git a/src/store/outbox/actions.js b/src/store/outbox/actions.js index b3cb575741..85ea091685 100644 --- a/src/store/outbox/actions.js +++ b/src/store/outbox/actions.js @@ -81,7 +81,7 @@ export default { ...message, sentAt: undefined, }, message.id) - commit('updateMessage', { message: Object.assign({ aborted: true }, updatedMessage)}) + commit('updateMessage', { message: Object.assign({ aborted: true }, updatedMessage) }) return updatedMessage },