From f50d7e2594692bd1e0e9f61ade540386b8ccdcba Mon Sep 17 00:00:00 2001 From: Anurag Vasanwala <75766877+AnuragVasanwala@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:03:29 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20`Reset`=20button=20for=20s?= =?UTF-8?q?cheduled=20stories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/documentPane/publish/publishTime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/wp-story-editor/src/components/documentPane/publish/publishTime.js b/packages/wp-story-editor/src/components/documentPane/publish/publishTime.js index b9c0a5a58623..04e7dd882a4d 100644 --- a/packages/wp-story-editor/src/components/documentPane/publish/publishTime.js +++ b/packages/wp-story-editor/src/components/documentPane/publish/publishTime.js @@ -102,7 +102,7 @@ function PublishTime() { // Floating date means an unset date so that the story publish date will match the time it will get published. const floatingDate = - ['draft', 'pending', 'auto-draft'].includes(status) && + ['draft', 'pending', 'auto-draft', 'future'].includes(status) && (date === modified || date === null); const displayLabel = !floatingDate @@ -151,7 +151,7 @@ function PublishTime() { forwardedRef={dateTimeNode} onClose={() => setShowDatePicker(false)} canReset={ - ['draft', 'pending', 'auto-draft'].includes(status) && + ['draft', 'pending', 'auto-draft', 'future'].includes(status) && !floatingDate } />