Reset client settings and local storage on switch to user.
This commit is contained in:
parent
fe749fe4cc
commit
68e7ec857b
2 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,7 @@ class App.ControllerTable extends App.Controller
|
|||
record = App[ attribute.relation ].find( object[rowWithoutId] )
|
||||
object[row.name] = record.name
|
||||
|
||||
@log 'error', 'table', 'header', header, 'overview', dataTypesForCols, 'objects', data.objects
|
||||
@log 'debug', 'table', 'header', header, 'overview', dataTypesForCols, 'objects', data.objects
|
||||
table = App.view('generic/table')(
|
||||
header: header
|
||||
overview: dataTypesForCols
|
||||
|
|
|
@ -37,6 +37,7 @@ class Index extends App.Controller
|
|||
callback: (e) ->
|
||||
e.preventDefault()
|
||||
user_id = $(e.target).parent().parent().data('id')
|
||||
App.Auth._logout()
|
||||
window.location = App.Config.get('api_path') + '/sessions/switch/' + user_id
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue