Ghost/ghost/admin/app/components/gh-editor-post-status.hbs
Kevin Ansfield 970df7fba7 🐛 Fixed missing autosave indicator regression in editor
refs https://github.com/TryGhost/Ghost/issues/12098

- the component template was directly referencing `this._isSaving` which meant that the `this.isSaving` getter was never fetched and so no autotracking was set up for `this.args.isSaving` to trigger the task that updates `this._isSaving`
2020-08-03 09:51:06 +01:00

20 lines
774 B
Handlebars

<div data-test-editor-post-status ...attributes>
{{#if this.isSaving}}
Saving...
{{else if (or @post.isPublished @post.pastScheduledTime)}}
Published
{{#if (or (eq @post.email.status "submitting") (eq @post.email.status "submitting"))}}
and sending to {{pluralize @post.email.emailCount "member"}}
{{else if (eq @post.email.status "submitted")}}
and sent to {{pluralize @post.email.emailCount "member"}}
{{/if}}
{{else if @post.isScheduled}}
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
Will be published {{this.scheduledText}}.
</time>
{{else if @post.isNew}}
New
{{else}}
Draft
{{/if}}
</div>