From 08aa2d91babd286d9b8c0440114b3e03d2a5570a Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 19 May 2022 12:02:10 +0100 Subject: [PATCH] Skipped publish flow modal animations when swapping between publish/preview no issue - updated the publish/preview toggle action to pass a `skipAnimation` data attribute to the modals when opening if they are being swapped rather than initially opened --- .../components/editor-labs/modals/preview.hbs | 21 +++++++++++++++---- .../editor-labs/modals/preview/browser.hbs | 2 +- .../editor-labs/modals/publish-flow.hbs | 2 +- .../editor-labs/publish-management.js | 14 +++++++------ 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/ghost/admin/app/components/editor-labs/modals/preview.hbs b/ghost/admin/app/components/editor-labs/modals/preview.hbs index fb6ae8991b..04cc8e3d06 100644 --- a/ghost/admin/app/components/editor-labs/modals/preview.hbs +++ b/ghost/admin/app/components/editor-labs/modals/preview.hbs @@ -51,21 +51,34 @@ {{else}} {{#if (eq this.tab "browser")}} - + {{/if}} {{#if (and (eq this.tab "mobile"))}} - + {{/if}} {{#unless @data.publishOptions.user.isContributor}} {{#if (and (eq this.tab "email") @data.publishOptions.post.isPost)}} - + {{/if}} {{/unless}} {{#if (eq this.tab "social")}} - + {{/if}} {{/if}} \ No newline at end of file diff --git a/ghost/admin/app/components/editor-labs/modals/preview/browser.hbs b/ghost/admin/app/components/editor-labs/modals/preview/browser.hbs index 00d8592be3..f881b042a2 100644 --- a/ghost/admin/app/components/editor-labs/modals/preview/browser.hbs +++ b/ghost/admin/app/components/editor-labs/modals/preview/browser.hbs @@ -1,4 +1,4 @@ -
+
diff --git a/ghost/admin/app/components/editor-labs/modals/publish-flow.hbs b/ghost/admin/app/components/editor-labs/modals/publish-flow.hbs index 8013d29430..962cbb6b3c 100644 --- a/ghost/admin/app/components/editor-labs/modals/publish-flow.hbs +++ b/ghost/admin/app/components/editor-labs/modals/publish-flow.hbs @@ -21,7 +21,7 @@ {{/if}} -
+
{{#if this.emailErrorMessage}}