mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Improved dropdown menu's handling
This commit is contained in:
parent
5839bcf62d
commit
2cb73643ca
8 changed files with 37 additions and 52 deletions
|
|
@ -74,19 +74,12 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
|||
this.allowContacts && showScreenPopup(ContactsPopupView);
|
||||
}
|
||||
|
||||
layoutDesktop()
|
||||
toggleLayout()
|
||||
{
|
||||
doc.cookie = 'rllayout=desktop';
|
||||
ThemeStore.isMobile(false);
|
||||
leftPanelDisabled(false);
|
||||
// location.reload();
|
||||
}
|
||||
|
||||
layoutMobile()
|
||||
{
|
||||
doc.cookie = 'rllayout=mobile';
|
||||
ThemeStore.isMobile(true);
|
||||
leftPanelDisabled(true);
|
||||
const mobile = !ThemeStore.isMobile();
|
||||
doc.cookie = 'rllayout=' + (mobile ? 'mobile' : 'desktop');
|
||||
ThemeStore.isMobile(mobile);
|
||||
leftPanelDisabled(mobile);
|
||||
// location.reload();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue