Don't redirect user if we're already in state that's not auth
This commit is contained in:
parent
28346ce233
commit
7ccbba2959
|
@ -184,6 +184,7 @@ Travis.Router = Ember.Router.extend
|
|||
|
||||
stats: Ember.Route.extend
|
||||
route: '/stats'
|
||||
afterSignIn: (-> )
|
||||
connectOutlets: (router) ->
|
||||
router.get('applicationController').connectOutlet 'statsLayout'
|
||||
$('body').attr('id', 'stats')
|
||||
|
@ -192,6 +193,7 @@ Travis.Router = Ember.Router.extend
|
|||
|
||||
profile: Ember.Route.extend
|
||||
initialState: 'index'
|
||||
afterSignIn: (-> )
|
||||
route: '/profile'
|
||||
|
||||
connectOutlets: (router) ->
|
||||
|
@ -258,6 +260,7 @@ Travis.Router = Ember.Router.extend
|
|||
|
||||
home: Ember.Route.extend
|
||||
route: '/'
|
||||
afterSignIn: (-> )
|
||||
connectOutlets: (router) ->
|
||||
router.get('applicationController').connectOutlet 'homeLayout'
|
||||
$('body').attr('id', 'home')
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1 +1 @@
|
|||
102985b4
|
||||
f4d864ad
|
Loading…
Reference in New Issue
Block a user