mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
improve: in mobile mode hide folders(left) panel when a folder is clicked
This commit is contained in:
parent
dadb6b86c3
commit
a8710bacc9
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import ko from 'ko';
|
import ko from 'ko';
|
||||||
|
|
||||||
import { ScopeFolderList, ScopeMessageList } from 'Common/Enums';
|
import { ScopeFolderList, ScopeMessageList } from 'Common/Enums';
|
||||||
import { addShortcut, stopEvent } from 'Common/Globals';
|
import { addShortcut, leftPanelDisabled, stopEvent } from 'Common/Globals';
|
||||||
import { mailBox, settings } from 'Common/Links';
|
import { mailBox, settings } from 'Common/Links';
|
||||||
//import { setFolderETag } from 'Common/Cache';
|
//import { setFolderETag } from 'Common/Cache';
|
||||||
import { addComputablesTo } from 'External/ko';
|
import { addComputablesTo } from 'External/ko';
|
||||||
|
|
@ -21,6 +21,7 @@ import { ContactsPopupView } from 'View/Popup/Contacts';
|
||||||
import { ComposePopupView } from 'View/Popup/Compose';
|
import { ComposePopupView } from 'View/Popup/Compose';
|
||||||
|
|
||||||
import { setExpandedFolder, foldersFilter } from 'Model/FolderCollection';
|
import { setExpandedFolder, foldersFilter } from 'Model/FolderCollection';
|
||||||
|
import { ThemeStore } from '../../../Stores/Theme';
|
||||||
|
|
||||||
export class MailFolderList extends AbstractViewLeft {
|
export class MailFolderList extends AbstractViewLeft {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
@ -112,6 +113,9 @@ export class MailFolderList extends AbstractViewLeft {
|
||||||
search = 'unseen';
|
search = 'unseen';
|
||||||
}
|
}
|
||||||
hasher.setHash(mailBox(folder.fullNameHash, 1, search));
|
hasher.setHash(mailBox(folder.fullNameHash, 1, search));
|
||||||
|
|
||||||
|
// in mobile mode hide the panel when a folder is clicked
|
||||||
|
ThemeStore.isMobile() && leftPanelDisabled()===false && leftPanelDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AppUserStore.focusedState(ScopeMessageList);
|
AppUserStore.focusedState(ScopeMessageList);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue