mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 15:29:19 +03:00
Merge pull request #3776 from felixrieseberg/iss3667
Ensure editor awareness if publishing fails
This commit is contained in:
commit
153a0c818f
@ -11,6 +11,9 @@ var EditorNewController = Ember.ObjectController.extend(EditorControllerMixin, {
|
||||
if (model.get('id')) {
|
||||
self.transitionToRoute('editor.edit', model);
|
||||
}
|
||||
}).catch(function () {
|
||||
// Publishing failed
|
||||
self.set('status', 'draft');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user