mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Improved handling of visible folders
This commit is contained in:
parent
7ca5991041
commit
6c144b5a28
3 changed files with 9 additions and 8 deletions
|
|
@ -254,6 +254,10 @@ export class FolderCollectionModel extends AbstractCollectionModel
|
|||
return result;
|
||||
}
|
||||
|
||||
visible() {
|
||||
return this.filter(folder => folder.visible());
|
||||
}
|
||||
|
||||
storeIt() {
|
||||
FolderUserStore.displaySpecSetting(Settings.app('folderSpecLimit') < this.CountRec);
|
||||
|
||||
|
|
@ -387,6 +391,7 @@ export class FolderModel extends AbstractModel {
|
|||
// isSubscribed: () => this.attributes().includes('\\subscribed'),
|
||||
|
||||
hasVisibleSubfolders: () => !!this.subFolders().find(folder => folder.visible()),
|
||||
visibleSubfolders: () => this.subFolders().visible(),
|
||||
|
||||
hasSubscriptions: () => this.isSubscribed() | !!this.subFolders().find(
|
||||
oFolder => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue