mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
b332e8c158
closes #3145 - added beforeModel redirect - added test
14 lines
417 B
JavaScript
14 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;
|