mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Revamp Mobile/Desktop switcher without completely reloading.
Remove switcher from login page, it became useless.
This commit is contained in:
parent
292f3289ac
commit
d7994ddab6
35 changed files with 159 additions and 202 deletions
|
|
@ -12,7 +12,9 @@ import { KeyboardShortcutsHelpPopupView } from 'View/Popup/KeyboardShortcutsHelp
|
|||
import { AccountPopupView } from 'View/Popup/Account';
|
||||
import { ContactsPopupView } from 'View/Popup/Contacts';
|
||||
|
||||
import { Settings } from 'Common/Globals';
|
||||
import { doc, Settings, leftPanelDisabled } from 'Common/Globals';
|
||||
|
||||
import { ThemeStore } from 'Stores/Theme';
|
||||
|
||||
export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||
constructor(name) {
|
||||
|
|
@ -82,6 +84,22 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
|||
}
|
||||
}
|
||||
|
||||
layoutDesktop()
|
||||
{
|
||||
doc.cookie = 'rllayout=desktop';
|
||||
ThemeStore.isMobile(false);
|
||||
leftPanelDisabled(false);
|
||||
// location.reload();
|
||||
}
|
||||
|
||||
layoutMobile()
|
||||
{
|
||||
doc.cookie = 'rllayout=mobile';
|
||||
ThemeStore.isMobile(true);
|
||||
leftPanelDisabled(true);
|
||||
// location.reload();
|
||||
}
|
||||
|
||||
logoutClick() {
|
||||
rl.app.logout();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue