pl-fe: draft statuses compose modal header

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-08-25 00:00:29 +02:00
parent 6770818303
commit 28f56670ff
2 changed files with 4 additions and 0 deletions

View File

@ -1228,6 +1228,7 @@
"navigation_bar.blocks": "Blocks",
"navigation_bar.compose": "Compose a post",
"navigation_bar.compose_direct": "Direct message",
"navigation_bar.compose_draft": "Edit draft post",
"navigation_bar.compose_edit": "Edit post",
"navigation_bar.compose_group": "Compose to group",
"navigation_bar.compose_group_reply": "Reply to group post",

View File

@ -64,6 +64,9 @@ const ComposeModal: React.FC<BaseModalProps & ComposeModalProps> = ({ onClose, c
};
const renderTitle = () => {
if (compose.draft_id) {
return <FormattedMessage id='navigation_bar.compose_draft' defaultMessage='Edit draft post' />;
}
if (statusId) {
return <FormattedMessage id='navigation_bar.compose_edit' defaultMessage='Edit post' />;
} else if (privacy === 'direct') {