unloadRecord -> unload
This commit is contained in:
parent
92da0c8034
commit
ded00e0182
|
@ -14,9 +14,7 @@
|
||||||
@set('state', 'signed-out')
|
@set('state', 'signed-out')
|
||||||
@set('user', undefined)
|
@set('user', undefined)
|
||||||
if user = Travis.__container__.lookup('controller:currentUser').get('content')
|
if user = Travis.__container__.lookup('controller:currentUser').get('content')
|
||||||
if user.get('stateManager.currentPath') == 'rootState.loaded.updated.uncommitted'
|
user.unload()
|
||||||
user.send('rollback')
|
|
||||||
user.unloadRecord()
|
|
||||||
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
||||||
if router = Travis.__container__.lookup('router:main')
|
if router = Travis.__container__.lookup('router:main')
|
||||||
router.send('afterSignOut')
|
router.send('afterSignOut')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user