Ghost/ghost/admin/app/models
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
..
action.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
api-key.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
base.js updated to use new model._meta 2020-02-10 12:41:35 +00:00
custom-theme-setting-list.js Added customThemeSettings service with all-records-in-one save request 2021-09-28 16:50:28 +01:00
custom-theme-setting.js Added support for boolean custom theme settings 2021-10-13 17:55:17 +01:00
email.js Added email feedback column (#15698) 2022-10-27 11:22:50 +04:00
integration.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
invite.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member-subscription.js Updated member model to use new subscriptions structure 2019-10-03 23:10:42 +05:30
member-tier.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
member.js Added member attribution to member details page (#15266) 2022-08-19 16:39:18 -04:00
navigation-item.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
newsletter.js Added toggle to enable/disable audience feedback in admin (#15601) 2022-10-13 10:24:46 +04:00
notification.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
offer.js Updated default offer duration as once 2021-10-19 00:19:32 +05:30
page.js 🎨 Separated post and page list screens (#1101) 2019-02-22 10:17:33 +07:00
post.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
role.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
setting.js Wired new analytics settings for tracking email and sources 2022-10-27 17:29:33 +05:30
snippet.js Renamed snippet.title to snippet.name for consistency 2020-10-16 10:15:07 +01:00
tag.js Removed unused parent property from tag model 2022-09-07 22:33:17 +01:00
theme.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
tier-benefit-item.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
tier.js Handled null trial days on tiers 2022-08-09 14:14:22 +05:30
user.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
webhook.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00