mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Skip all non-visible folders in folderList instead of being hidden
This commit is contained in:
parent
44f73828f1
commit
1fdcc68518
2 changed files with 7 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import { Scope } from 'Common/Enums';
|
||||||
import { leftPanelDisabled, moveAction } from 'Common/Globals';
|
import { leftPanelDisabled, moveAction } from 'Common/Globals';
|
||||||
import { mailBox, settings } from 'Common/Links';
|
import { mailBox, settings } from 'Common/Links';
|
||||||
import { setFolderHash } from 'Common/Cache';
|
import { setFolderHash } from 'Common/Cache';
|
||||||
|
import { addComputablesTo } from 'Common/Utils';
|
||||||
|
|
||||||
import { AppUserStore } from 'Stores/User/App';
|
import { AppUserStore } from 'Stores/User/App';
|
||||||
import { SettingsUserStore } from 'Stores/User/Settings';
|
import { SettingsUserStore } from 'Stores/User/Settings';
|
||||||
|
|
@ -38,7 +39,11 @@ export class MailFolderList extends AbstractViewLeft {
|
||||||
|
|
||||||
this.allowContacts = AppUserStore.allowContacts();
|
this.allowContacts = AppUserStore.allowContacts();
|
||||||
|
|
||||||
this.folderListFocused = ko.computed(() => Scope.FolderList === AppUserStore.focusedState());
|
addComputablesTo(this, {
|
||||||
|
folderListFocused: () => Scope.FolderList === AppUserStore.focusedState(),
|
||||||
|
|
||||||
|
folderListVisible: () => FolderUserStore.folderList().filter(v => !v.hidden())
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onBuild(dom) {
|
onBuild(dom) {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="b-content">
|
<div class="b-content">
|
||||||
<ul class="b-folders-system" data-bind="template: { name: 'MailFolderListSystemItem', foreach: folderListSystem }"></ul>
|
<ul class="b-folders-system" data-bind="template: { name: 'MailFolderListSystemItem', foreach: folderListSystem }"></ul>
|
||||||
<hr/>
|
<hr/>
|
||||||
<ul class="b-folders-user" data-bind="template: { name: 'MailFolderListItem', foreach: folderList }"></ul>
|
<ul class="b-folders-user" data-bind="template: { name: 'MailFolderListItem', foreach: folderListVisible }"></ul>
|
||||||
<div class="move-action-content-wrapper" data-bind="visible: moveAction"></div>
|
<div class="move-action-content-wrapper" data-bind="visible: moveAction"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="b-content show-on-panel-disabled" data-bind="click: function () { leftPanelDisabled(false); }"></div>
|
<div class="b-content show-on-panel-disabled" data-bind="click: function () { leftPanelDisabled(false); }"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue