fb23f19c1b
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>
13 lines
440 B
XML
13 lines
440 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<t t-name="test_themes.ThemeTooltip" owl="1">
|
|
<img t-att-src="url" width="150"/>
|
|
</t>
|
|
|
|
<t t-name="test_themes.WebsiteSwitcherSystray" t-inherit="website.WebsiteSwitcherSystray" t-inherit-mode="extension">
|
|
<xpath expr="//DropdownItem" position="attributes">
|
|
<attribute name="dataset">this.tooltips[element.id]</attribute>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|