diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/OutboxMessageListItem.vue | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/OutboxMessageListItem.vue b/src/components/OutboxMessageListItem.vue index 74cb65e37..6a8431743 100644 --- a/src/components/OutboxMessageListItem.vue +++ b/src/components/OutboxMessageListItem.vue @@ -40,13 +40,13 @@ icon="icon-checkmark" :close-after-click="true" @click="sendMessage"> - {{ t('mail', 'Send message now') }} + {{ t('mail', 'Send now') }} </ActionButton> <ActionButton icon="icon-delete" :close-after-click="true" @click="deleteMessage"> - {{ t('mail', 'Delete message') }} + {{ t('mail', 'Delete') }} </ActionButton> </template> </ListItem> @@ -109,8 +109,12 @@ export default { }, async sendMessage(data) { logger.debug('sending message', { data }) - await this.$store.dispatch('outbox/sendMessage', { id: this.message.id }) - showSuccess(t('mail', 'Message sent')) + try { + await this.$store.dispatch('outbox/sendMessage', { id: this.message.id }) + showSuccess(t('mail', 'Message sent')) + } catch (error) { + showError(t('mail', 'Could not send message')) + } }, async openModal() { await this.$store.dispatch('showMessageComposer', { |