diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 22c9938..61f4d3a 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -110,10 +110,27 @@ "subwidgets": [ { "widgettype": "urlwidget", + "id": "global_menu_widget", "options": { "url": "{{entire_url('global_menu.ui')}}" } } + ], + "binds": [ + { + "wid": "app", + "event": "user_logined", + "actiontype": "script", + "target": "self", + "script": "sageReloadMenu()" + }, + { + "wid": "app", + "event": "sage_logout", + "actiontype": "script", + "target": "self", + "script": "sageReloadMenu()" + } ] }, {