From ccffafea213d4c88556064b5a23030cd9242d7d0 Mon Sep 17 00:00:00 2001 From: silverpill Date: Tue, 14 Mar 2023 16:45:28 +0000 Subject: [PATCH] Show alert if publishing of reply fails --- CHANGELOG.md | 4 ++++ src/components/PostEditor.vue | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2608e99..44ed94d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Enabled audio and video uploads. +### Changed + +- Show alert if publishing of reply fails. + ### Fixed - Fixed automatic logout on authentication error. diff --git a/src/components/PostEditor.vue b/src/components/PostEditor.vue index 773a454..2eaae09 100644 --- a/src/components/PostEditor.vue +++ b/src/components/PostEditor.vue @@ -334,6 +334,10 @@ async function publish() { } catch (error: any) { errorMessage = error.message isLoading = false + if (props.inReplyTo !== null) { + // Show alert if there's no errorbox + alert(errorMessage) + } return } // Refresh editor