mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
b332e8c158
closes #3145 - added beforeModel redirect - added test
13 lines
417 B
JavaScript
13 lines
417 B
JavaScript
import styleBody from 'ghost/mixins/style-body';
|
|
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
|
|
|
var SetupRoute = Ember.Route.extend(styleBody, loadingIndicator, {
|
|
classNames: ['ghost-setup'],
|
|
beforeModel: function () {
|
|
if (this.get('session').isAuthenticated) {
|
|
this.transitionTo(Ember.SimpleAuth.routeAfterAuthentication);
|
|
}
|
|
}
|
|
});
|
|
|
|
export default SetupRoute;
|