mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] test_themes: restore the website switcher
The forward-port of [1] made no adaptation to the code, and it now
simply crashes when trying to use the website switcher when test_themes
is installed.
This also fixes a linter error introduced by that same [1] commit.
[1]: https://github.com/odoo/design-themes/commit/c3af5d9796929025c9503ab639afc8c60a262b3f
closes odoo/design-themes#1037
X-original-commit: a5a838e84f
Related: odoo/odoo#191567
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -29,13 +29,13 @@ patch(WebsiteSwitcherSystray.prototype, {
|
||||
|
||||
getElements() {
|
||||
// Add tooltip information
|
||||
const elements = this._super();
|
||||
const elements = super.getElements(...arguments);
|
||||
return elements.map((elem) => {
|
||||
elem.dataset = {
|
||||
...elem.dataset,
|
||||
...this.tooltips[elem.id]
|
||||
};
|
||||
return elem
|
||||
return elem;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user