diff options
author | Anna <anna@nextcloud.com> | 2022-04-07 23:54:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 23:54:17 +0300 |
commit | 94db15ffc1ec650b5a3e465754251c6c7901e1d0 (patch) | |
tree | e2703efdec4f948dfb37b52960f67378159d2890 | |
parent | 0f70eb0079cf52c25123848433b7e0573577e1ab (diff) | |
parent | 23300ff857a2123b17d79f0a7584ec15309938ca (diff) |
Merge pull request #6209 from nextcloud/fix/outbox-send-no-error-handling
Fix outbox send now error handling and improve message action labels
-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', { |