mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
🎨 Added a "saved" indicator for autosaved draft posts
refs https://github.com/TryGhost/Team/issues/779 For draft posts the editor autosaves after each change but if you didn't see the "Saving..." indicator it wasn't clear what the save status of the post was. The editor will now always show "Saved" when there are no unsaved changes. - removed indicator from published and scheduled posts because there's no autosave there - removed the labs flag
This commit is contained in:
parent
3bc226bef0
commit
e7501ece33
@ -8,9 +8,6 @@
|
||||
{{else if (eq @post.email.status "submitted")}}
|
||||
and sent to {{gh-pluralize @post.email.emailCount "member"}}
|
||||
{{/if}}
|
||||
{{#if (feature "savedIndicator")}}
|
||||
{{if (not @hasDirtyAttributes) "- Saved"}}
|
||||
{{/if}}
|
||||
{{else if @post.isScheduled}}
|
||||
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
||||
Will be published
|
||||
@ -19,15 +16,10 @@
|
||||
{{/if}}
|
||||
{{this.scheduledTime}}
|
||||
</time>
|
||||
{{#if (feature "savedIndicator")}}
|
||||
{{if (not @hasDirtyAttributes) "- Saved"}}
|
||||
{{/if}}
|
||||
{{else if @post.isNew}}
|
||||
New
|
||||
{{else}}
|
||||
Draft
|
||||
{{#if (feature "savedIndicator")}}
|
||||
{{if (not @hasDirtyAttributes) "- Saved"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
@ -56,7 +56,6 @@ export default Service.extend({
|
||||
multipleProducts: feature('multipleProducts', {developer: true}),
|
||||
membersFiltering: feature('membersFiltering', {developer: true}),
|
||||
emailCardSegments: feature('emailCardSegments', {developer: true}),
|
||||
savedIndicator: feature('savedIndicator', {developer: true}),
|
||||
featureImgDragDrop: feature('featureImgDragDrop', {developer: true}),
|
||||
oauthLogin: feature('oauthLogin', {developer: true}),
|
||||
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
|
||||
|
@ -270,19 +270,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
<h4 class="gh-expandable-title">Show saved state in editor</h4>
|
||||
<p class="gh-expandable-description">
|
||||
Post status in editor shows "- Saved" when a post has no unsaved changes
|
||||
</p>
|
||||
</div>
|
||||
<div class="for-switch">
|
||||
<GhFeatureFlag @flag="savedIndicator" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user