Ghost/ghost/admin/app/helpers
Kevin Ansfield 2be1673106 Added initial "publishOptions" setup
refs https://github.com/TryGhost/Team/issues/1542

- adds a `PublishOptions` class
  - an instance of this class provides everything the UI needs to display and set the publish options relevant to the current post object and overall system state
  - the `publish-flow` modal is passed a `PublishOptions` instance when it opens
  - as part of the constructor it triggers a background load of any additional data it requires to control available options such as member counts, email limits, and newsletters
- adds a `{{publish-options}}` resource
  - sets up and returns `PublishOptions` instance
  - passes through service dependencies which are not available directly in the `PublishOptions` class as it's a custom native class outside of Ember's DI management
  -  used to ensure we can get a clean `PublishOptions` instance any time the passed in `post` object is replaced meaning we don't have to rely on observers and manual teardown/setup
- updated `<PublishManagement>` component
  - sets up `publishOptions` property using `@use` and the `{{publish-options}}` resource so reactivity for changing post objects is handled automatically
  - uses the `publishOptions.isLoading` property to disable the publish flow trigger button until all of the data required to manage the flow is available
- updated `publish-flow` modal to use some of the initially available `publishOptions` data
2022-04-22 17:56:49 +01:00
..
accent-color-background.js Fixed linter error 2022-03-09 12:24:36 +00: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
currency-symbol.js Added guard for missing currency in currency symbol helper 2021-10-20 18:02:14 +05:30
enable-developer-experiments.js Added developer experiments indication to about page 2020-10-09 11:38:47 +01:00
event-name.js Added "Member updated" event to the webhook dropdown 2019-10-31 14:36:00 +00: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 Improved number formatting in members screen 2020-05-26 14:40:03 +01:00
full-email-address.js Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +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 Fixed typo in default UTC timezone of {{gh-format-post-time}} helper 2022-02-10 14:29:36 +00:00
gh-pluralize.js Fixed {{gh-pluralize}} errors 2020-08-10 11:37:21 +01:00
gh-price-amount.js Fixed incorrect price amount formatting 2022-01-18 15:16:09 +05:30
gh-user-can-admin.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
gravatar.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00: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
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
members-count-fetcher.js Refactored modal for bulk adding a label to members 2022-02-09 21:58:59 +00:00
members-event-fetcher.js Dropped ember-concurrency-decorators dependency 2022-02-09 10:49:38 +00:00
members-event-filter.js Collapsed @service injection definitions to single-line style 2022-02-03 19:04:43 +00:00
moment-site-tz.js Removed errant console.log 2022-03-03 16:17:37 +00:00
most-recently-updated.js Switched members table to show info from most-recently-updated subscription instead of first in array 2022-03-04 16:32:41 +00:00
noop.js Hid snippet management UI from staff users without permissions 2020-10-27 14:42:59 +00:00
parse-member-event.js Updated subscription event handling (#2332) 2022-04-13 10:28:13 +01:00
publish-options.js Added initial "publishOptions" setup 2022-04-22 17:56:49 +01:00
query-selector.js Migrated <GhUnsplash> to glimmer component 2022-02-07 16:53:12 +00:00
reset-query-params.js Added member query param support to members-activity screen 2022-01-25 12:13:13 +00: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 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +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