[15.0][FIX] Fix problem of blank page when using web_responsive

Changes for default page open
pull/2684/head
anjeel.haria 2023-02-16 16:07:21 +01:00 committed by Taras Shabaranskyi
parent 313bc8043f
commit c7a37728d1
2 changed files with 0 additions and 15 deletions

View File

@ -21,18 +21,8 @@ patch(WebClient.prototype, "web_responsive.DefaultAppsMenu", {
this._super(); this._super();
useBus(this.env.bus, "APPS_MENU:STATE_CHANGED", (payload) => { useBus(this.env.bus, "APPS_MENU:STATE_CHANGED", (payload) => {
this.el.classList.toggle("o_apps_menu_opened", payload); this.el.classList.toggle("o_apps_menu_opened", payload);
this.el.classList.toggle("o_first_app", false);
}); });
}, },
_loadDefaultApp() {
var menu_apps_dropdown = document.querySelector(
".o_navbar_apps_menu .dropdown-toggle"
);
menu_apps_dropdown.click();
this.el.classList.toggle("o_apps_menu_opened", true);
this.el.classList.toggle("o_first_app", true);
return true;
},
}); });
/** /**

View File

@ -15,11 +15,6 @@
top: $o-navbar-height !important; top: $o-navbar-height !important;
} }
// We can't use display: none here because of tests
.o_first_app .o_navbar_apps_menu .dropdown-toggle {
z-index: -1;
cursor: default;
}
.o_apps_menu_opened .o_main_navbar { .o_apps_menu_opened .o_main_navbar {
.o_menu_brand, .o_menu_brand,
.o_menu_sections { .o_menu_sections {