fix ui on depmand
This commit is contained in:
parent
cd949c4f20
commit
76bf80f395
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ def init(data):
|
|||
response['user']['id'] = settings.USER_ID
|
||||
response['user']['online'] = state.online
|
||||
if settings.ui:
|
||||
for f in settings.ui['filters']:
|
||||
if f['id'] == 'classification':
|
||||
f['id'] = 'categories'
|
||||
settings.ui._save()
|
||||
response['user']['ui'] = settings.ui
|
||||
return response
|
||||
actions.register(init)
|
||||
|
|
Loading…
Reference in a new issue