Don't redirect user if we're already in state that's not auth

This commit is contained in:
Piotr Sarnacki 2012-10-13 19:00:56 +02:00
parent 28346ce233
commit 7ccbba2959
5 changed files with 1556 additions and 1553 deletions

View File

@ -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

View File

@ -1 +1 @@
102985b4
f4d864ad