mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
fe2e3f45c7
commit
7357ece639
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
import styleBody from 'ghost/mixins/style-body';
|
import styleBody from 'ghost/mixins/style-body';
|
||||||
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
||||||
|
import ghostPaths from 'ghost/utils/ghost-paths';
|
||||||
|
|
||||||
var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
|
var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
|
||||||
classNames: ['ghost-signout'],
|
classNames: ['ghost-signout'],
|
||||||
|
@ -8,11 +9,15 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
|
||||||
if (Ember.canInvoke(transition, 'send')) {
|
if (Ember.canInvoke(transition, 'send')) {
|
||||||
transition.send('invalidateSession');
|
transition.send('invalidateSession');
|
||||||
transition.abort();
|
transition.abort();
|
||||||
this.transitionTo('signin');
|
this.hardRefresh();
|
||||||
} else {
|
} else {
|
||||||
this.send('invalidateSession');
|
this.send('invalidateSession');
|
||||||
this.transitionTo('signin');
|
this.hardRefresh();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
hardRefresh: function () {
|
||||||
|
window.location = ghostPaths().adminRoot + '/signin/';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue