Ghost/ghost/admin/app/routes/settings
Arjuna Kristophe Sankar 096dffb817
🐛 Fixed missing active theme breaks design screen (#15602)
closes: https://github.com/TryGhost/Ghost/issues/15505

When starting Ghost with a missing active theme, the design settings screen and change theme screen both end up in a broken state with the user unable to select a new theme as the active one.

The design screen has no default (or blank) slate, and so shows a preview of an empty theme.
- First added a new default screen to serve as a placeholder for when the state contains no active theme.
- Added a check for when there was no active theme, then redirects the user to the default screen .

The change theme screen wants to set an active property on the theme that should be active in the theme list.
- Added a check to see whether there is an active theme set.
- If there isn't one, don't bother trying to add the active property.
2022-10-30 14:14:11 +00:00
..
design 🐛 Fixed missing active theme breaks design screen (#15602) 2022-10-30 14:14:11 +00:00
integration/webhooks Refactored integration webhook modals 2022-09-08 09:18:56 +01:00
integrations Removed need for .get() with config service 2022-10-07 16:14:57 +01:00
newsletters Implemented newsletter limits 2022-05-11 12:10:26 +02:00
staff Migrated staff user screen to Ember Octane patterns (#15532) 2022-10-05 12:05:31 +01:00
analytics.js Added mock component for analytics settings page 2022-10-26 15:15:09 +02:00
code-injection.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
design.js 🐛 Fixed missing active theme breaks design screen (#15602) 2022-10-30 14:14:11 +00:00
general.js Removed need for .get() with config service 2022-10-07 16:14:57 +01:00
history.js Cleaned up auditLog flag 2022-09-13 12:28:21 +01:00
integration.js Switched integration unsaved changes modal to new modal pattern 2022-09-09 17:44:11 +01:00
integrations.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
labs.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
members-email.js Renamed members-email-labs to newsletters and removed unused files 2022-05-05 13:37:53 +02:00
membership.js Switched membership unsaved changes modal to new modal pattern 2022-09-09 17:44:11 +01:00
navigation.js Switched navigation unsaved changes modal to new modal pattern 2022-09-09 17:44:12 +01:00
newsletters.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
theme-install.js 🐛 Fixed theme installs from ghost.org/marketplace 2021-11-10 10:58:29 +00:00