[IMP] web: trigger event when changing action
This comportement was added in the DebugManager to trigger an event. As this event could be useful in other situations (e.g. studio), we trigger the event directly in the ActionManager. By default, the WebClient does not use this event but an handler is added to be overwritten. This handler is overwritten in some widgets (DebugManager, Studio, etc.) that requires the Systray items instances so we add them in ´widgets´ in the Systray Menu. As the module dashboard uses multiple ActionManager, the event bubbling should be avoided in this case.
Showing
- addons/board/static/src/js/dashboard.js 1 addition, 0 deletionsaddons/board/static/src/js/dashboard.js
- addons/web/static/src/js/abstract_web_client.js 6 additions, 0 deletionsaddons/web/static/src/js/abstract_web_client.js
- addons/web/static/src/js/action_manager.js 2 additions, 0 deletionsaddons/web/static/src/js/action_manager.js
- addons/web/static/src/js/widgets/debug_manager.js 6 additions, 21 deletionsaddons/web/static/src/js/widgets/debug_manager.js
- addons/web/static/src/js/widgets/systray_menu.js 2 additions, 0 deletionsaddons/web/static/src/js/widgets/systray_menu.js
Loading
Please register or sign in to comment