Revamp Mobile/Desktop switcher without completely reloading.

Remove switcher from login page, it became useless.
This commit is contained in:
djmaze 2021-02-16 20:12:23 +01:00
parent 292f3289ac
commit d7994ddab6
35 changed files with 159 additions and 202 deletions

View file

@ -1,8 +1,9 @@
import { mailbox } from 'Common/Links';
import { getFolderInboxName } from 'Common/Cache';
import { leftPanelDisabled, isMobile } from 'Common/Globals';
import { leftPanelDisabled } from 'Common/Globals';
import MessageStore from 'Stores/User/Message';
import { ThemeStore } from 'Stores/Theme';
import { AbstractViewRight } from 'Knoin/AbstractViews';
@ -32,7 +33,7 @@ export class PaneSettingsUserView extends AbstractViewRight {
}
onBuild(dom) {
isMobile() && dom.addEventListener('click', () => leftPanelDisabled(true));
dom.addEventListener('click', () => ThemeStore.isMobile() && leftPanelDisabled(true));
}
backToMailBoxClick() {