mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added failure state for reply in admin-x-activitypub (#21487)
no refs Added a failure state for when a reply fails to be sent
This commit is contained in:
parent
f601ab3fda
commit
3ecfe08e1d
2 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tryghost/admin-x-activitypub",
|
||||
"version": "0.3.7",
|
||||
"version": "0.3.8",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -64,6 +64,16 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
|||
if (onNewReply) {
|
||||
onNewReply(activity);
|
||||
}
|
||||
},
|
||||
onError() {
|
||||
showToast({
|
||||
message: 'An error occurred while sending your reply.',
|
||||
type: 'error'
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
textareaRef.current?.focus();
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue