Ghost/ghost/admin/app/components/gh-nav-menu
Kevin Ansfield 505ae7493e Optimized loading of custom theme setting in design screens
no issue

We want to automatically show brand settings expanded in the design menu when the active theme has no custom theme settings, in order to do that without causing visual noise/jank we need to ensure that we have all the data we need up-front before the design menu is rendered.

- optimized `customThemeSettings` loading behaviour
  - `.load()` will now only perform a fetch if settings have not previously been loaded so it can be called without causing unnecessary waits
  - `.reload()` will force a clear+refetch of the settings - called by `themeManagement.activate()` after successfully changing a theme
- moved fetching of theme settings from the design menu constructor to the `settings.design` route's `model()` hook
  - means the app will wait for loading to finish before showing any of the design settings screen so we can guarantee the data we need is available
- moved update of preview html from the design menu constructor to the design settings route as it's a more appropriate place to find screen setup/loading behaviour
2021-10-22 10:49:13 +01:00
..
design.hbs Updated design settings sidebar hover states 2021-10-21 16:44:46 +02:00
design.js Optimized loading of custom theme setting in design screens 2021-10-22 10:49:13 +01:00
footer.hbs Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
footer.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
main.hbs Fixed main nav menu bug for Offers alpha flag 2021-10-21 17:08:48 +02:00
main.js Removed Offer from sidebar when stripe is disconnected 2021-10-20 18:02:14 +05:30