mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Merge pull request #3618 from jaswilli/issue-3612
Check for server notifications on hard refresh
This commit is contained in:
commit
6ed629b410
@ -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'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user