0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed post saving indicator only indicating autosaves (#842)

refs https://github.com/TryGhost/Ghost/issues/8932

- show "Saving..." text when autosave or manual save tasks are running
- remove minimum period "Saving..." is shown for in tests
This commit is contained in:
Kevin Ansfield 2017-08-29 12:33:13 +01:00 committed by Katharina Irrgang
parent 0d96ac38b5
commit 0338b9dc4a
2 changed files with 5 additions and 2 deletions

View file

@ -1,10 +1,13 @@
import Component from '@ember/component';
import Ember from 'ember';
import {computed} from '@ember/object';
import {reads} from '@ember/object/computed';
import {task, timeout} from 'ember-concurrency';
const {testing} = Ember;
// TODO: reduce when in testing mode
const SAVE_TIMEOUT_MS = 3000;
const SAVE_TIMEOUT_MS = testing ? 0 : 3000;
export default Component.extend({
post: null,

View file

@ -8,7 +8,7 @@
<div class="gh-editor-status">
{{gh-editor-post-status
post=model
isSaving=autosave.isRunning
isSaving=(or autosave.isRunning saveTasks.isRunning)
}}
</div>
{{#if scheduleCountdown}}