Close sidebar when opening settings, help etc.

This commit is contained in:
Richard Lewis 2019-08-02 16:12:01 +03:00 committed by Pavel Djundik
parent 7fd48d8155
commit addd4124bf

View file

@ -108,6 +108,10 @@ window.vueMounted = () => {
} else {
vueApp.activeChannel = null;
vueApp.$store.commit("activeWindow", target);
if (!keepSidebarOpen && $(window).outerWidth() <= utils.mobileViewportPixels) {
vueApp.setSidebar(false);
}
}
utils.synchronizeNotifiedState();