[FIX] web, website: fix NavBar systrayItems getter patch

After OWL next was merged, an error popped up while patching the Navbar
systrayItems getter, coming from the Enterprise NavBar render. A setter
was added on the NavBar component to allow the patch.

task-2687506
This commit is contained in:
Younn Olivier
2022-06-24 10:28:04 +02:00
committed by qsm-odoo
parent 4255d16ac4
commit b03bd93629
2 changed files with 5 additions and 1 deletions
@@ -92,6 +92,10 @@ export class NavBar extends Component {
.reverse();
}
// This dummy setter is only here to prevent conflicts between the
// Enterprise NavBar extension and the Website NavBar patch.
set systrayItems(_) {}
/**
* Adapt will check the available width for the app sections to get displayed.
* If not enough space is available, it will replace by a "more" menu
@@ -35,5 +35,5 @@ patch(NavBar.prototype, 'website_navbar', {
.reverse();
}
return this._super();
}
},
});