Merge pull request #2919 from novaugust/editor-button-unpublish-fix

Fix Editor Save Button not allowing unpublish
This commit is contained in:
Hannah Wolfe 2014-06-11 19:35:47 +02:00
commit 05057ac322

View File

@ -9,9 +9,9 @@ var EditorControllerMixin = Ember.Mixin.create({
* Only with a user-set value (via setSaveType action)
* can the post's status change.
*/
willPublish: function (key, val) {
if (val) {
return val;
willPublish: function (key, value) {
if (arguments.length > 1) {
return value;
}
return this.get('isPublished');
}.property('isPublished'),