-
- Downloads
[FIX] website: correctly toggle the preview for the countdown snippet
The countdown snippet has an end action that can be configured to show a message when the countdown reaches zero. A button in the editor toggles a preview of this message. However, a bug currently makes the preview disappear whenever the snippet's widget is restarted... which occurs by simply hovering some other options. To solve the problem, the preview visibility is now controlled by a separate css class s_countdown_enable_preview overriding d-none. This way, the preview visibility no longer interacts with the widget's logic and is no longer affected by the widget restarting. task-2638366 Part-of: odoo/odoo#76343
Showing
- addons/website/static/src/scss/website.edit_mode.scss 12 additions, 0 deletionsaddons/website/static/src/scss/website.edit_mode.scss
- addons/website/static/src/snippets/s_countdown/options.js 12 additions, 2 deletionsaddons/website/static/src/snippets/s_countdown/options.js
- addons/website/static/tests/tours/snippet_countdown.js 32 additions, 0 deletionsaddons/website/static/tests/tours/snippet_countdown.js
- addons/website/tests/test_snippets.py 3 additions, 0 deletionsaddons/website/tests/test_snippets.py
- addons/website/views/assets.xml 1 addition, 0 deletionsaddons/website/views/assets.xml
Loading
Please register or sign in to comment