From 23537355b60aefe5ea7d82e8f30c7eed02d80d6c Mon Sep 17 00:00:00 2001 From: Rishabh Garg Date: Fri, 26 Jun 2020 02:15:47 +0530 Subject: [PATCH] Added live preview to members settings modal (#1622) no issue - Adds live preview of members.js modal UI to the new settings modal behind dev flag - Uses `gh-site-iframe` to render site in preview mode with custom portal url --- .../app/components/gh-members-lab-setting.hbs | 4 +- ghost/admin/app/components/gh-site-iframe.hbs | 2 +- ghost/admin/app/components/gh-site-iframe.js | 11 +- .../modal-members-modal-settings.hbs | 269 ++++++++++-------- .../modal-members-modal-settings.js | 21 +- ghost/admin/app/styles/app-dark.css | 1 + ghost/admin/app/styles/app.css | 1 + .../app/styles/layouts/portal-settings.css | 54 ++++ 8 files changed, 231 insertions(+), 132 deletions(-) create mode 100644 ghost/admin/app/styles/layouts/portal-settings.css diff --git a/ghost/admin/app/components/gh-members-lab-setting.hbs b/ghost/admin/app/components/gh-members-lab-setting.hbs index b948f123a8..4951db4d77 100644 --- a/ghost/admin/app/components/gh-members-lab-setting.hbs +++ b/ghost/admin/app/components/gh-members-lab-setting.hbs @@ -394,5 +394,5 @@ stripeConnectIntegration=this.stripeConnectIntegration }} @close={{action "closeMembersModalSettings"}} - @modifier="action wide" /> -{{/if}} + @modifier="full-overlay portal-settings" /> +{{/if}} \ No newline at end of file diff --git a/ghost/admin/app/components/gh-site-iframe.hbs b/ghost/admin/app/components/gh-site-iframe.hbs index 63f56a5d77..9bb33c1b57 100644 --- a/ghost/admin/app/components/gh-site-iframe.hbs +++ b/ghost/admin/app/components/gh-site-iframe.hbs @@ -1,4 +1,4 @@ - +