mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
b1c75ce324
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;
|