mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #3496 from jaswilli/refresh
Remove unnecessary hard refresh on signout.
This commit is contained in:
commit
fa4cb9c19d
1 changed files with 0 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
|||
import styleBody from 'ghost/mixins/style-body';
|
||||
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
||||
import ghostPaths from 'ghost/utils/ghost-paths';
|
||||
|
||||
var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
|
||||
classNames: ['ghost-signout'],
|
||||
|
@ -13,13 +12,7 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
|
|||
} else {
|
||||
this.send('invalidateSession');
|
||||
}
|
||||
|
||||
this.hardRefresh();
|
||||
},
|
||||
|
||||
hardRefresh: function () {
|
||||
window.location = ghostPaths().adminRoot + '/signin/';
|
||||
}
|
||||
});
|
||||
|
||||
export default SignoutRoute;
|
||||
|
|
Loading…
Add table
Reference in a new issue