diff --git a/ghost/admin/app/components/gh-alerts.js b/ghost/admin/app/components/gh-alerts.js index bdab2985b8..18df4f52f7 100644 --- a/ghost/admin/app/components/gh-alerts.js +++ b/ghost/admin/app/components/gh-alerts.js @@ -1,6 +1,5 @@ import Component from '@ember/component'; import {alias} from '@ember/object/computed'; -import {observer} from '@ember/object'; import {inject as service} from '@ember/service'; export default Component.extend({ @@ -9,9 +8,5 @@ export default Component.extend({ notifications: service(), - messages: alias('notifications.alerts'), - - messageCountObserver: observer('messages.[]', function () { - this.sendAction('notify', this.get('messages').length); - }) + messages: alias('notifications.alerts') }); diff --git a/ghost/admin/app/controllers/application.js b/ghost/admin/app/controllers/application.js index 9bbf0654d6..8b13eb1d50 100644 --- a/ghost/admin/app/controllers/application.js +++ b/ghost/admin/app/controllers/application.js @@ -17,13 +17,5 @@ export default Controller.extend({ return (this.get('currentPath') !== 'error404' || this.get('session.isAuthenticated')) && !this.get('currentPath').match(/(signin|signup|setup|reset)/); - }), - - topNotificationCount: 0, - - actions: { - topNotificationChange(count) { - this.set('topNotificationCount', count); - } - } + }) }); diff --git a/ghost/admin/app/templates/application.hbs b/ghost/admin/app/templates/application.hbs index af9235a77d..4634eac730 100644 --- a/ghost/admin/app/templates/application.hbs +++ b/ghost/admin/app/templates/application.hbs @@ -1,14 +1,14 @@ {{#gh-app showSettingsMenu=ui.showSettingsMenu}} {{#gh-skip-link anchor=".gh-main"}}Skip to main content{{/gh-skip-link}} - {{gh-alerts notify="topNotificationChange"}} + {{gh-alerts}}