Merge pull request #3776 from felixrieseberg/iss3667

Ensure editor awareness if publishing fails
This commit is contained in:
Hannah Wolfe 2014-08-14 21:19:21 +01:00
commit 153a0c818f

View File

@ -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');
});
}
}