mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Remove unnecessary hard refresh on signout.
Refs #3488 - Hard refresh handled by ember-simple-auth.
This commit is contained in:
parent
91ae72dc82
commit
68775b3ef8
1 changed files with 0 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
||||||
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'],
|
||||||
|
@ -13,13 +12,7 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
|
||||||
} else {
|
} else {
|
||||||
this.send('invalidateSession');
|
this.send('invalidateSession');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.hardRefresh();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
hardRefresh: function () {
|
|
||||||
window.location = ghostPaths().adminRoot + '/signin/';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default SignoutRoute;
|
export default SignoutRoute;
|
||||||
|
|
Loading…
Add table
Reference in a new issue