diff --git a/app/javascript/mastodon/features/compose/redesign/footer.tsx b/app/javascript/mastodon/features/compose/redesign/footer.tsx index 15308bacc8b..ed8ed41b2b2 100644 --- a/app/javascript/mastodon/features/compose/redesign/footer.tsx +++ b/app/javascript/mastodon/features/compose/redesign/footer.tsx @@ -41,12 +41,24 @@ export const ComposeFooter: React.FC<{ onEmojiPick: OnEmojiPick }> = ({ const isSubmitting = useAppSelector( (state) => !!state.compose.get('is_submitting'), ); + const isEditing = useAppSelector((state) => !!state.compose.get('id')); const dispatch = useAppDispatch(); const handlePoll = useCallback(() => { dispatch(addPoll()); }, [dispatch]); + let publishText = ( + + ); + if (isEditing) { + publishText = ; + } else if (type === 'message' || type === 'replyPrivate') { + publishText = ( + + ); + } + return ( diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index b0a96291020..03e885e286f 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -575,6 +575,7 @@ "compose.reply.title.new": "New reply", "compose.reply_private.title.edit": "Edit private reply", "compose.reply_private.title.new": "New private reply", + "compose.save": "Save", "compose.saved.body": "Post saved.", "compose.sensitive.label": "Sensitive content", "compose.sensitive.text": "Content warning",