Ghost/ghost/admin/app/services
Kevin Ansfield a5eeb1865b 🎨 Move "Update available" notification to the About screen (#894)
refs https://github.com/TryGhost/Ghost/issues/5071

Upgrade messages are now shown on the About screen rather than as alerts. Notifications that are marked as `top` or `custom` are still shown as alerts to allow for certain upgrade messages to be given more visibility.

- remove old `upgrade-notification` service
- update the `upgrade-status` service:
  - add a `message` property that contains an upgrade notification if any exists
  - add a `handleUpgradeNotification` method that accepts a Notification model instance and extracts the `notification.message` property into a html safe string for use in templates
- when loading server notifications during app boot, pass notifications that aren't marked as `top` or `custom` to the new `handleUpgradeNotification` method
- update the `about.hbs` template to pull the upgrade message from the `upgradeStatus` service
2018-01-09 14:23:36 +00:00
..
ajax.js Bump ember-ajax dependency (#902) 2017-11-03 22:59:39 +00:00
clock.js Don't destructure Ember.testing (#933) 2018-01-02 10:19:59 +00:00
config.js Avoid leaking state in Ember objects 2017-11-25 09:49:49 +00:00
dropdown.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
event-bus.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
feature.js Match service/controller import to ember-modules-codemod style for consistency 2017-10-30 09:38:01 +00:00
ghost-paths.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
lazy-loader.js Don't destructure Ember.testing (#933) 2018-01-02 10:19:59 +00:00
media-queries.js Unsplash integration 2017-08-15 16:01:12 +01:00
notifications.js Bump ember-ajax dependency (#902) 2017-11-03 22:59:39 +00:00
session.js Match service/controller import to ember-modules-codemod style for consistency 2017-10-30 09:38:01 +00:00
settings.js Match service/controller import to ember-modules-codemod style for consistency 2017-10-30 09:38:01 +00:00
slug-generator.js Match service/controller import to ember-modules-codemod style for consistency 2017-10-30 09:38:01 +00:00
tour.js Avoid leaking state in Ember objects 2017-11-25 09:49:49 +00:00
ui.js Match service/controller import to ember-modules-codemod style for consistency 2017-10-30 09:38:01 +00:00
unsplash.js Trigger a background download request when Unsplash images are inserted 2017-12-12 17:22:59 +00:00
upgrade-status.js 🎨 Move "Update available" notification to the About screen (#894) 2018-01-09 14:23:36 +00:00