mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
505ae7493e
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 |
||
---|---|---|
.. | ||
design.hbs | ||
design.js | ||
footer.hbs | ||
footer.js | ||
main.hbs | ||
main.js |