Do not trigger rerender on client disconnect.
This commit is contained in:
parent
e964c120af
commit
60c2d4dc95
3 changed files with 6 additions and 5 deletions
|
@ -78,7 +78,7 @@ class Index extends App.Controller
|
|||
$('#app').hide().attr('style', 'display: none!important')
|
||||
@delay(
|
||||
=>
|
||||
App.Auth._logout()
|
||||
App.Auth._logout(false)
|
||||
@ajax(
|
||||
id: 'user_switch'
|
||||
type: 'GET'
|
||||
|
|
|
@ -36,7 +36,7 @@ class Widget extends App.ControllerWidgetOnDemand
|
|||
$('#app').hide().attr('style', 'display: none!important')
|
||||
@delay(
|
||||
=>
|
||||
App.Auth._logout()
|
||||
App.Auth._logout(false)
|
||||
@ajax(
|
||||
id: 'user_switch_back'
|
||||
type: 'GET'
|
||||
|
|
|
@ -132,8 +132,8 @@ class App.Auth
|
|||
App.Event.trigger('ui:rerender')
|
||||
|
||||
|
||||
@_logout: (data) ->
|
||||
App.Log.debug 'Auth', '_logout', data
|
||||
@_logout: (rerender = true) ->
|
||||
App.Log.debug 'Auth', '_logout'
|
||||
|
||||
App.Ajax.abortAll()
|
||||
|
||||
|
@ -142,7 +142,8 @@ class App.Auth
|
|||
|
||||
App.Event.trigger('auth')
|
||||
App.Event.trigger('auth:logout')
|
||||
App.Event.trigger('ui:rerender')
|
||||
if rerender
|
||||
App.Event.trigger('ui:rerender')
|
||||
App.Event.trigger('clearStore')
|
||||
|
||||
@_loginError: ->
|
||||
|
|
Loading…
Reference in a new issue