Ghost/ghost/admin/app/controllers
Rishabh Garg 65495b528f 🐛 Fixed settings previews not working in private site mode (#2128)
closes https://github.com/TryGhost/Team/issues/1161

- when a site is in private mode, design previews, the portal previews on membership, customize portal and offer pages were unable to load. 
- For design and theme previews, the request to fetch preview data was failing due to cors and cookie not attached when admin and frontend have split urls. 
- For portal and offer previews, there was no authentication done on private site before load, so if user opened the pages directly on them it failed to load the site.
- this change adds a new service that authenticates private site from admin as soon as user session is loaded, so previews on settings will always find the authenticated session for private sites and load correctly.
- it also updates fetch method for previews to include credentials so they are always able to fetch the site data after login
- removes authentication from site route since that was done as its now centrally taken care of by the frontend service
2021-10-28 18:29:41 +05:30
..
editor 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
integration/webhooks Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
integrations Added limit check before adding new integration (#1934) 2021-04-28 19:29:25 +12:00
members Added automatic filter of members list after CSV import 2020-07-23 14:15:07 +01:00
settings 🐛 Fixed settings previews not working in private site mode (#2128) 2021-10-28 18:29:41 +05:30
setup Bumped eslint-plugin-ghost and fixed linter errors 2021-07-15 15:27:29 +01:00
staff Added utils service with downloadFile() method 2021-10-05 14:21:19 +01:00
application.js Moved adjusted accent color properties to ui service 2021-07-26 17:03:17 +01:00
billing.js Added billing controller for explicitness 2020-04-22 16:44:34 +12:00
dashboard.js 🐛 Fixed default currency for MRR stats on dashboard 2021-06-24 14:51:39 +05:30
designsandbox.js Renamed design sandbox template 2021-02-05 14:00:51 +01:00
editor.js Fixed error when calling hasOwnProperty on null/undefined when saving posts 2021-10-15 15:49:19 +01:00
error.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
integration.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
integrations.js Disabled zapier if custom integrations are disabled 2021-03-04 21:26:24 +00:00
launch.js Updated pricing setup on launch wizard 2021-05-20 17:01:12 +05:30
member.js Added new label input dropdown on member detail behind filtering flag 2021-09-08 22:59:58 +05:30
members.js Added utils service with downloadFile() method 2021-10-05 14:21:19 +01:00
offer.js Added offer name as default value for display title 2021-10-22 15:49:11 +05:30
offers.js Added price list to offer list screen 2021-10-20 18:02:14 +05:30
pages-loading.js 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
pages.js Added open rate order option to posts list 2020-12-04 10:30:03 +00:00
posts-loading.js Added access level filter to posts and pages lists in admin 2020-06-09 12:19:40 +01:00
posts.js Fixed open rate appearing twice in posts ordering dropdown 2020-12-10 15:14:13 +00:00
reset.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
settings.js Removed unused portal-settings modal code from settings screen 2021-05-19 18:32:37 +01:00
setup.js Fixed deprecated access of controller.{currentPath,currentRouteName} 2019-05-06 14:51:23 +01:00
signin.js Bumped eslint-plugin-ghost and fixed linter errors 2021-07-15 15:27:29 +01:00
signup.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
site.js Added reset-to-homepage behaviour when clicking "view site" link 2019-03-21 17:55:58 +00:00
tag.js 🐛 Fixed tag metadata fields not being populated when editing in admin (#1714) 2020-09-28 16:20:53 +01:00
tags.js Cleaned up and re-organised tag and new tag routes/controllers 2019-12-09 17:44:16 +00:00
whatsnew.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00