Show alert if publishing of reply fails
This commit is contained in:
parent
36a8920367
commit
ccffafea21
2 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
- Enabled audio and video uploads.
|
- Enabled audio and video uploads.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Show alert if publishing of reply fails.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed automatic logout on authentication error.
|
- Fixed automatic logout on authentication error.
|
||||||
|
|
|
@ -334,6 +334,10 @@ async function publish() {
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
errorMessage = error.message
|
errorMessage = error.message
|
||||||
isLoading = false
|
isLoading = false
|
||||||
|
if (props.inReplyTo !== null) {
|
||||||
|
// Show alert if there's no errorbox
|
||||||
|
alert(errorMessage)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Refresh editor
|
// Refresh editor
|
||||||
|
|
Loading…
Reference in a new issue