Ghost/ghost/admin/app/controllers/settings
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
..
design Closed advanced theme settings when leaving change-theme route 2021-10-20 20:54:15 +01:00
integration/webhooks Added Integrations as a subpage of Settings 2021-10-18 14:47:59 +02:00
integrations Added Integrations as a subpage of Settings 2021-10-18 14:47:59 +02:00
staff Added Staff as subpages of Settings 2021-10-18 13:27:42 +02:00
theme Fix the limit service when querying an empty config 2021-04-09 11:16:37 +02:00
code-injection.js 🐛 Fixed unable to exit code injection settings without save 2021-02-11 21:09:55 +05:30
design.js Fixed save button on design settings screen 2021-10-12 15:19:27 +01:00
general.js 🐛 Fixed settings previews not working in private site mode (#2128) 2021-10-28 18:29:41 +05:30
integration.js Added Integrations as a subpage of Settings 2021-10-18 14:47:59 +02:00
integrations.js Added Integrations as a subpage of Settings 2021-10-18 14:47:59 +02:00
labs.js Added utils service with downloadFile() method 2021-10-05 14:21:19 +01:00
members-email.js Updated email previews to show full from email address 2021-06-11 16:42:27 +01:00
membership.js Updated labels in offer screens when multiple tiers is disabled 2021-10-21 22:59:16 +05:30
navigation.js Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
product.js Removed unused members-payments route 2021-05-21 08:57:28 +01:00
products.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
theme.js Removed unused blogUrl CP from theme controller 2021-10-05 14:37:51 +01:00