Merge pull request #3618 from jaswilli/issue-3612

Check for server notifications on hard refresh
This commit is contained in:
Hannah Wolfe 2014-08-06 08:13:23 +01:00
commit 6ed629b410

View File

@ -2,6 +2,12 @@ import ShortcutsRoute from 'ghost/mixins/shortcuts-route';
var ApplicationRoute = Ember.Route.extend(SimpleAuth.ApplicationRouteMixin, ShortcutsRoute, {
afterModel: function (model, transition) {
if (this.get('session').isAuthenticated) {
transition.send('loadServerNotifications');
}
},
shortcuts: {
'esc': 'closePopups'
},