0
Fork 0
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:
Michael Barrett 2024-10-31 16:34:53 +00:00 committed by GitHub
parent f601ab3fda
commit 3ecfe08e1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@tryghost/admin-x-activitypub",
"version": "0.3.7",
"version": "0.3.8",
"license": "MIT",
"repository": {
"type": "git",

View file

@ -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);
}
});
}