diff --git a/packages/wp-story-editor/src/components/postPublishDialog/index.js b/packages/wp-story-editor/src/components/postPublishDialog/index.js index c92d96b68e71..be646508c742 100644 --- a/packages/wp-story-editor/src/components/postPublishDialog/index.js +++ b/packages/wp-story-editor/src/components/postPublishDialog/index.js @@ -33,16 +33,18 @@ function PostPublishDialog() { embedPostLink: confirmURL, link: storyURL, isFreshlyPublished, + status, } = useStory( ({ state: { - story: { embedPostLink, link }, + story: { embedPostLink, link, status }, meta: { isFreshlyPublished }, }, }) => ({ embedPostLink, link, isFreshlyPublished, + status, }) ); @@ -61,12 +63,19 @@ function PostPublishDialog() { const primaryText = confirmURL ? __('Add to new post', 'web-stories') : ''; + const dialogTitle = + status === 'private' + ? __('Story published privately.', 'web-stories') + : status === 'future' + ? __('Story scheduled.', 'web-stories') + : __('Story published.', 'web-stories'); + return ( - {__( - 'Your story has been successfully published! View story.', - 'web-stories' - )} + {status === 'future' + ? __( + 'Your story has been successfully scheduled! View story.', + 'web-stories' + ) + : __( + 'Your story has been successfully published! View story.', + 'web-stories' + )} {confirmURL && (