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) * Only with a user-set value (via setSaveType action)
* can the post's status change. * can the post's status change.
*/ */
willPublish: function (key, val) { willPublish: function (key, value) {
if (val) { if (arguments.length > 1) {
return val; return value;
} }
return this.get('isPublished'); return this.get('isPublished');
}.property('isPublished'), }.property('isPublished'),