Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
  • Loading branch information
Mikhail Sazanov committed Sep 6, 2022
1 parent a5db2c5 commit f463551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/components/NavigationOutbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -120,7 +120,6 @@ export default {
this.sending = false
})
},

},
}
</script>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Outbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
<div slot="list" class="header__button">
<NewMessageButtonHeader />
<div class="outbox-retry">
<div class="outbox-retry--info" v-if="!sending">
<div v-if="!sending" class="outbox-retry--info">
{{
n('mail', '{count} failed message', '{count} failed messages', failedMessages.length, {count: failedMessages.length})
}}
</div>
<div class="outbox-retry--info" v-else>
<div v-else class="outbox-retry--info">
{{
n('mail', 'Retrying send message', 'Retrying send {count} messages', failedMessages.length, {count: failedMessages.length})
}}
Expand Down Expand Up @@ -173,7 +173,7 @@ export default {
})
.catch(() => {
message.pending = false
this.$store.commit('outbox/updateMessage', {message})
this.$store.commit('outbox/updateMessage', { message })
}))
return msg
})
Expand Down
2 changes: 1 addition & 1 deletion src/store/outbox/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},

Expand Down

0 comments on commit f463551

Please sign in to comment.