[ADD] web: Owl Dialog
New Owl component: Dialog. It does not rely on Bootstrap but behaves the same and does not conflict with legacy dialogs. To call this component, you need to define it in the XML parent template instead of calling it in the JS file, and put a flag in the parent state to toggle the dialog. Old dialog file has also been slightly updated to ensure compatibility between both versions. This commit also updates a list view test which did not wait for click events to properly trigger and would cause the new dialog system to crash.
Showing
- addons/web/static/src/js/core/dialog.js 7 additions, 0 deletionsaddons/web/static/src/js/core/dialog.js
- addons/web/static/src/js/core/owl_dialog.js 259 additions, 0 deletionsaddons/web/static/src/js/core/owl_dialog.js
- addons/web/static/src/scss/modal.scss 22 additions, 4 deletionsaddons/web/static/src/scss/modal.scss
- addons/web/static/src/scss/utils.scss 7 additions, 0 deletionsaddons/web/static/src/scss/utils.scss
- addons/web/static/src/xml/base.xml 48 additions, 0 deletionsaddons/web/static/src/xml/base.xml
- addons/web/static/src/xml/dialog.xml 18 additions, 10 deletionsaddons/web/static/src/xml/dialog.xml
- addons/web/static/tests/core/owl_dialog_tests.js 250 additions, 0 deletionsaddons/web/static/tests/core/owl_dialog_tests.js
- addons/web/static/tests/views/list_tests.js 4 additions, 4 deletionsaddons/web/static/tests/views/list_tests.js
- addons/web/views/webclient_templates.xml 2 additions, 0 deletionsaddons/web/views/webclient_templates.xml
Loading
Please register or sign in to comment