mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
68775b3ef8
Refs #3488 - Hard refresh handled by ember-simple-auth.
19 lines
582 B
JavaScript
19 lines
582 B
JavaScript
import styleBody from 'ghost/mixins/style-body';
|
|
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
|
|
|
var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
|
|
classNames: ['ghost-signout'],
|
|
|
|
afterModel: function (model, transition) {
|
|
this.notifications.clear();
|
|
if (Ember.canInvoke(transition, 'send')) {
|
|
transition.send('invalidateSession');
|
|
transition.abort();
|
|
} else {
|
|
this.send('invalidateSession');
|
|
}
|
|
},
|
|
});
|
|
|
|
export default SignoutRoute;
|