mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
adeef741fb
refs https://github.com/TryGhost/Team/issues/1542 - extracted before/after save routines in the editor controller into separate actions - allows saving to occur in the publish flow without it needing any editor-specific knowledge - allows for easier cleanup of email related logic from the editor save tasks later on - added `saveTask` to `PublishOptions` - applies the selected options to the post model where they correspond to model attributes and keeps the previous values in memory so the changes can be undone on failure - this keeps the local model state in sync because if a publish fails we want the editor to continue showing the draft state, non-scheduled publish time, and not have an unexpected email-only state - saves the post model directly passing `adapterOptions` so the save request query params match the chosen publish options - added a `saveTask` to the `<PublishManagement>` component - passed through to the `publish-flow` modal and is triggered by the confirm button on the confirmation screen - runs the before/afterSave arguments passed in from the editor - runs the `saveTask` on `PublishOptions` which handles everything needed to change status and send emails - polls the post after saving to wait for the attached email to switch to submitted/failed which lets us show a failure message and retry button as required (message + retry not yet implemented) - adds "complete" state to publish flow once save has finished - confirms what just happened based on saved post data rather than chosen publish options - has a link to the view the post |
||
---|---|---|
.. | ||
editor | ||
members | ||
settings | ||
setup | ||
-contributors.hbs | ||
application-error.hbs | ||
application.hbs | ||
dashboard.hbs | ||
designsandbox.hbs | ||
editor.hbs | ||
error.hbs | ||
launch.hbs | ||
member.hbs | ||
members-activity.hbs | ||
members.hbs | ||
offer.hbs | ||
offers.hbs | ||
pages-loading.hbs | ||
pages.hbs | ||
posts-loading.hbs | ||
posts.hbs | ||
reset.hbs | ||
settings.hbs | ||
setup.hbs | ||
signin.hbs | ||
signup.hbs | ||
site.hbs | ||
tag.hbs | ||
tags-loading.hbs | ||
tags.hbs | ||
whatsnew.hbs |