mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Merge pull request #2919 from novaugust/editor-button-unpublish-fix
Fix Editor Save Button not allowing unpublish
This commit is contained in:
commit
05057ac322
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user