fix: dispatch user_logined event after successful login
After login message is dismissed, dispatches 'user_logined' on bricks.app so the sidebar menu reloads without requiring manual page reload.
This commit is contained in:
parent
9d2a94131a
commit
54b0f3d7b6
@ -105,6 +105,13 @@ async with db.sqlorContext(dbname) as sor:
|
||||
"actiontype":"script",
|
||||
"target": f'body.login_window',
|
||||
"script":"this.destroy()"
|
||||
},
|
||||
{
|
||||
"wid":"self",
|
||||
"event":"dismissed",
|
||||
"actiontype":"script",
|
||||
"target":"self",
|
||||
"script":"if(bricks.app && bricks.app.dispatch) bricks.app.dispatch('user_logined')"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user