mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +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 |
||
---|---|---|
.. | ||
editor | ||
members | ||
settings | ||
setup | ||
application.js | ||
billing.js | ||
dashboard.js | ||
designsandbox.js | ||
editor.js | ||
error.js | ||
home.js | ||
launch.js | ||
member.js | ||
members-activity.js | ||
members.js | ||
offer.js | ||
offers.js | ||
pages-loading.js | ||
pages.js | ||
posts-loading.js | ||
posts.js | ||
reset.js | ||
settings.js | ||
setup.js | ||
signin.js | ||
signup.js | ||
site.js | ||
tag.js | ||
tags.js | ||
whatsnew.js |