Ghost/ghost/admin/app/helpers
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
..
accent-color-background.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
activity-feed-fetcher.js Improved filter support in activity API to allow pagination (#15684) 2022-10-27 12:13:24 +02:00
author-names.js 🐛 Fixed author names not appearing in Facebook open-graph preview 2019-03-12 12:15:02 +00:00
background-image-style.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
capitalize-first-letter.js Added the newsletter name to the activity feed 2022-05-03 14:24:18 +02:00
currency-symbol.js Added guard for missing currency in currency symbol helper 2021-10-20 18:02:14 +05:30
enable-developer-experiments.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
event-name.js Added missing schedule events to webhook dropdown (#2082) 2022-08-02 12:34:30 +01:00
feature.js Added open-rate column and ordering to the members list (#1790) 2020-12-08 19:23:57 +00:00
first-name.js 🎨 Updated Member page layout (#2271) 2022-03-01 15:57:57 +01:00
format-number.js Added 2 digit pad to fraction prices 2022-05-31 17:38:43 +02:00
full-email-address.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
get-setting.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
gh-count-characters.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
gh-count-down-characters.js Updated character counter color 2021-07-08 15:15:49 +02:00
gh-format-post-time.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
gh-pluralize.js Fixed {{gh-pluralize}} errors 2020-08-10 11:37:21 +01:00
gh-price-amount.js Added 2 digit pad to fraction prices 2022-05-31 17:38:43 +02:00
gh-user-can-admin.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
hex-adjust.js Switched to extracted @tryghost/color-utils package 2021-07-29 11:35:15 +01:00
hex-contrast.js Fixed incorrect darkening of email-cta button on hover with some colours 2021-07-29 15:11:17 +01:00
highlighted-text.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
history-event-fetcher.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
history-event-filter.js Renamed Audit Log to History 2022-09-06 11:49:29 +01:00
humanize-recipient-filter.js Updated post list layouts 2022-09-15 12:50:53 +01:00
humanize-setting-key.js Added RSS capitalisation in custom theme setting labels 2021-11-05 09:12:14 +00:00
integration-icon-style.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
is-moment-today.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
member-fetcher.js Fixed PromiseObject related errors thrown from members activity list (#15641) 2022-10-17 15:28:34 +02:00
members-count-fetcher.js Improved handling of missing member counts in publish flow 2022-05-11 18:56:29 +01:00
members-event-fetcher.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
members-event-filter.js Added aggregated click events (#15713) 2022-10-27 17:23:45 +02:00
moment-site-tz.js Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
most-recently-updated.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
noop.js Hid snippet management UI from staff users without permissions 2020-10-27 14:42:59 +00:00
parse-history-event.js Renamed Audit Log to History 2022-09-06 11:49:29 +01:00
parse-member-event.js Removed links from sources and added a prefix icon 2022-10-27 17:07:41 +01:00
post-author-names.js Added <GhPostBookmark> and displayed on publish flow complete step 2022-05-10 13:26:13 +01:00
publish-options.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
query-selector.js Migrated <GhUnsplash> to glimmer component 2022-02-07 16:53:12 +00:00
reset-query-params.js Renamed Audit Log to History 2022-09-06 11:49:29 +01:00
set-has.js Dropped intermediate design screen and moved to full-overlay modal 2021-10-04 16:34:28 +01:00
set-query-params.js Added latest newsletters to dashboard 5.0 2022-04-07 13:02:58 +02:00
site-icon-style.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
toggle-feature.js Added per-user dismissibility of getting-started widget 2022-01-31 13:05:20 +00:00
ui-btn-span.js Moved Spirit CSS library from external to internal 2019-02-24 11:19:22 +07:00
ui-btn.js Moved Spirit CSS library from external to internal 2019-02-24 11:19:22 +07:00
ui-text.js Moved Spirit CSS library from external to internal 2019-02-24 11:19:22 +07:00