[IMP] test_themes: (re)add preview to website (themes) switcher

Commit [1] moved the website switcher from the frontend to the backend
and in doing so re-factored it into an OWL component.

Initially, this refactoring broke the theme preview from the previous
widget. This commit re-introduces those previews.

[1]: https://github.com/odoo/design-themes/commit/163a8b6fae0d6709d61af81550d1ad77dfe311c9

task-2687506

closes odoo/design-themes#573

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Co-authored-by: Younn Olivier <yol@odoo.com>
Co-authored-by: Romain Derie <rde@odoo.com>
This commit is contained in:
Arthur Detroux (ard)
2022-06-29 15:44:07 +00:00
committed by Romain Derie
parent 937d1ce897
commit fb23f19c1b
8 changed files with 55 additions and 79 deletions
+5 -5
View File
@@ -41,15 +41,15 @@
'theme_yes',
'theme_zap',
],
'data': [
'views/website_navbar_templates.xml',
],
'installable': True,
'application': False,
'post_init_hook': 'post_init_hook',
'assets': {
'web.assets_frontend': [
'test_themes/static/src/js/navbar.js',
'web.assets_backend': [
'test_themes/static/src/js/systray_items/website_switcher.js',
],
'web.assets_qweb': [
'test_themes/static/src/js/systray_items/website_switcher.xml',
],
},
'license': 'LGPL-3',