Ghost/ghost/admin/app/routes
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
..
editor Fixed new post screen showing 500 error 2021-07-12 20:19:50 +01:00
integration/webhooks Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
integrations Added Integrations as a subpage of Settings 2021-10-18 14:47:59 +02:00
member Updated members routes/controllers with Octane idioms 2020-05-20 16:39:31 +01:00
members Updated members routes/controllers with Octane idioms 2020-05-20 16:39:31 +01:00
offer Added initial wiring for offer screens 2021-10-06 20:01:25 +05:30
settings Optimized loading of custom theme setting in design screens 2021-10-22 10:49:13 +01:00
setup Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
staff Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
tag Cleaned up and re-organised tag and new tag routes/controllers 2019-12-09 17:44:16 +00:00
application.js Removed errant console.log 2021-09-09 14:15:47 +01:00
authenticated.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
dashboard.js Removed labs dashboard and feature flag 2021-09-14 10:12:16 +01:00
designsandbox.js Renamed design sandbox template 2021-02-05 14:00:51 +01:00
editor.js Converted post-preview modal to EPM based modal 2021-09-13 13:01:12 +01:00
error404.js 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
home.js Added blank dashboard screen 2021-02-02 16:08:00 +00:00
integration.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
integrations.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
launch.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
member.js Removed @classic decorator from member route 2021-08-31 09:37:44 +01:00
members.js Added Members Filtering feature 2021-10-01 14:16:28 +02:00
offer.js Added initial wiring for offer screens 2021-10-06 20:01:25 +05:30
offers.js Updated offers list to filter on archived offers 2021-10-13 21:23:30 +05:30
pages.js Refactored document-title handler 2019-05-20 16:16:19 +01:00
posts.js Added 'sent' status as a valid posts route filter 2021-08-13 17:18:37 +04:00
pro.js Avoided reloading billing iframe 2021-09-10 15:26:42 +01:00
reset.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
settings.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
setup.js 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
signin.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
signout.js Refactored document-title handler 2019-05-20 16:16:19 +01:00
signup.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
site.js Allowed "view site" request to save cookies in cross-origin requests 2019-09-09 17:01:26 +01:00
tag.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
tags.js Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
unauthenticated.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
whatsnew.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00