[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:
@@ -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();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user