mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
a4f8088697
closes #2417 - Adds Notification(s)Component - Render notifications in application.hbs - Adds handleError in application route
21 lines
664 B
JavaScript
21 lines
664 B
JavaScript
import Notifications from 'ghost/utils/notifications';
|
|
|
|
var registerNotifications = {
|
|
name: 'registerNotifications',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('notifications:main', Notifications);
|
|
}
|
|
};
|
|
|
|
var injectNotifications = {
|
|
name: 'injectNotifications',
|
|
|
|
initialize: function (container, application) {
|
|
application.inject('controller', 'notifications', 'notifications:main');
|
|
application.inject('component', 'notifications', 'notifications:main');
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
}
|
|
};
|
|
|
|
export {registerNotifications, injectNotifications}; |