mirror of https://github.com/OCA/web.git
[15.0][FIX] Fix problem of blank page when using web_responsive
Changes for default page openpull/2684/head
parent
313bc8043f
commit
c7a37728d1
|
@ -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;
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue