From a6ebb928a982faada1c20129610e8cab7005ac0c Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 1 Jul 2020 14:07:52 +0100 Subject: [PATCH] Improved scheduled status text shown in editor refs https://github.com/TryGhost/Ghost/issues/11965 - always show scheduled time when a post is scheduled - show when a post will be emailed and to which group of members --- .../app/components/gh-editor-post-status.hbs | 36 ++++---- .../app/components/gh-editor-post-status.js | 83 ++++++++++--------- ghost/admin/tests/acceptance/editor-test.js | 8 +- 3 files changed, 65 insertions(+), 62 deletions(-) diff --git a/ghost/admin/app/components/gh-editor-post-status.hbs b/ghost/admin/app/components/gh-editor-post-status.hbs index f349c005ac..629dcbeb04 100644 --- a/ghost/admin/app/components/gh-editor-post-status.hbs +++ b/ghost/admin/app/components/gh-editor-post-status.hbs @@ -1,22 +1,20 @@ -{{#if this._isSaving}} - Saving... -{{else if (or this.post.isPublished this.post.pastScheduledTime)}} - Published - {{#if (or (eq this.post.email.status "submitting") (eq this.post.email.status "submitting"))}} - and sending to {{pluralize this.post.email.emailCount "member"}} - {{else if (eq this.post.email.status "submitted")}} - and sent to {{pluralize this.post.email.emailCount "member"}} - {{/if}} -{{else if this.post.isScheduled}} - {{#if this.countdown}} -