Ghost/ghost/admin/app/components/modals
Kevin Ansfield 9bdb25d184
Fixed hosting management screen not loading after sign-in process (#15763)
refs https://github.com/TryGhost/Team/issues/2110

- dynamically defined properties on the config service did not have
autotracking set up properly if they were accessed in any way before the
property was defined, this caused problems in a number of areas because
we have both "unauthed" and "authed" sets of config and when not logged
in we had parts of the app checking for authed config properties that
don't exist until after sign-in and subsequent config re-fetch
- renamed `config` service to `configManager` and updated to only
contain methods for fetching config data
- added a `config` instance initializer that sets up a `TrackedObject`
instance with some custom properties/methods and registers it on
`config:main`
- uses application instance initializer rather than a standard
initializer because standard initializers are only called once when
setting up the test suite so we'd end up with config leaking across
tests
- added an `@inject` decorator that when used takes the property name
and injects whatever is registered at `${propertyName}:main`, this
allows us to use dependency injection for any object rather than just
services or controllers
- using `application.inject()` in the initializer was initially used but
that only works for objects that extend from `EmberObject`, the
injections weren't available in native-class glimmer components so this
decorator keeps the injection syntax consistent
  - swapped all `@service config` uses to `@inject config`
2022-11-03 11:14:36 +00:00
..
design Updated theme upload modal in Casper error state 2022-07-14 15:07:08 +01:00
editor Cleaned up old publish menu code 2022-05-16 18:07:53 +01:00
limits Updated modal title 2022-05-12 12:16:12 +02:00
newsletters Moved the audience feedback setting into the footer 2022-10-31 12:10:36 +00:00
offers Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
settings Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
tiers Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
confirm-unsaved-changes.hbs 🐛 Fixed close button on "unsaved changes" modal not always behaving like "Stay" button 2022-04-14 12:39:10 +01:00
custom-view-form.hbs Fixed disappeared button text on custom view modal 2022-09-13 14:56:04 +01:00
custom-view-form.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
delete-post.hbs Added "Enter" key handling to refactored delete-post modal 2021-09-13 13:58:13 +01:00
delete-post.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
email-preview.hbs Fixed sent email preview alignment bug 2022-05-17 15:20:58 +02:00
email-preview.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
new-custom-integration.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
new-custom-integration.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
search.hbs Refactored search modal 2022-01-11 17:59:48 +00:00
search.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00