[FIX] website: hide logo height scrolled option if no logo
Before this commit, the logo height scrolled option was displayed even if there was no logo. It was because the condition to display or not this option (in the "_computeWidgetVisibility") had not been updated correctly when the DOM of the navbar was refactored. task-2800680 closes odoo/odoo#98321 X-original-commit: 2b2ff732914e6c491e48540958bec967a3acfe33 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -2081,7 +2081,7 @@ options.registry.HeaderNavbar = options.Class.extend({
|
||||
async _computeWidgetVisibility(widgetName, params) {
|
||||
switch (widgetName) {
|
||||
case 'option_logo_height_scrolled': {
|
||||
return !this.$('.navbar-brand').hasClass('d-none');
|
||||
return !!this.$('.navbar-brand').length;
|
||||
}
|
||||
case 'no_hamburger_opt': {
|
||||
return !weUtils.getCSSVariableValue('header-template').includes('hamburger');
|
||||
|
||||
Reference in New Issue
Block a user