mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
cf8b372fed
refs https://github.com/TryGhost/Team/issues/1621 - copied existing preview modal over to `editor-labs/modals` directory - old modal will be deleted in cleanup - moved "Preview" button from editor template to the `<PublishManagement>` component - allows for preview modal to be controlled alongside the publish flow modal - added `togglePreviewPublish()` action to `<PublishManagement>` - opens whichever of preview/publish is not currently open, this opens the new modal on top of the old modal - waits for the modal animation duration to pass then closes the modal that's now underneath, this prevents the flashing that occurs when modals are both opening and closing at the same time because that results in a 50% opacity of both modals during the middle of the animation - updated preview modal and publish-flow modals to have "Publish" and "Preview" buttons respectively that call the `togglePreviewPublish` action - updated preview modal to be fullscreen to better match the publish modal |
||
---|---|---|
.. | ||
components | ||
layouts | ||
patterns | ||
spirit | ||
app-dark.css | ||
app.css |