mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
Removed commented post.save call in puglishmenu
refs https://linear.app/tryghost/issue/CORE-71/email-only-posts-hand-off - The piece of code was commented out with an intention of keeping an existing pattern of only calling post's save's when edits are done in the editor or PSM. The changes in the publishmenu should not effect the model and have a need to save it - The side-effect that still needs to be sorted is the change to the 'saveType' is effecting a model and causes a confirmation modal when leaving the post screen
This commit is contained in:
parent
2ca57e7624
commit
349230f2f5
@ -458,9 +458,5 @@ export default Component.extend({
|
||||
|
||||
this.post.set('statusScratch', null);
|
||||
this.post.validate();
|
||||
// TODO: confirm with Naz why this is needed and find a different solution
|
||||
// - we shouldn't be saving post data every time the menu is closed,
|
||||
// especially when the user has chosen to cancel/close the menu without saving
|
||||
// this.post.save();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user