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)
|
* 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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user