mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve issue #112
This commit is contained in:
parent
1f9e96f107
commit
ba477e25ff
12 changed files with 82 additions and 106 deletions
|
|
@ -3,7 +3,6 @@ import ko from 'ko';
|
|||
import { FolderType, FolderSortMode } from 'Common/EnumsUser';
|
||||
import { UNUSED_OPTION_VALUE } from 'Common/Consts';
|
||||
import { addObservablesTo, addSubscribablesTo } from 'Common/Utils';
|
||||
import { folderListOptionsBuilder } from 'Common/UtilsUser';
|
||||
import { getFolderInboxName, getFolderFromCacheList } from 'Common/Cache';
|
||||
import { SettingsGet } from 'Common/Globals';
|
||||
|
||||
|
|
@ -107,28 +106,6 @@ export const FolderUserStore = new class {
|
|||
this.folderListSystemNames().map(name => getFolderFromCacheList(name)).filter(v => v)
|
||||
);
|
||||
|
||||
this.folderMenuForMove = ko.computed(() =>
|
||||
folderListOptionsBuilder(
|
||||
this.folderListSystem(),
|
||||
this.folderList(),
|
||||
[this.currentFolderFullNameRaw()],
|
||||
[],
|
||||
null,
|
||||
(item) => (item ? item.localName() : '')
|
||||
)
|
||||
);
|
||||
|
||||
this.folderMenuForFilters = ko.computed(() =>
|
||||
folderListOptionsBuilder(
|
||||
this.folderListSystem(),
|
||||
this.folderList(),
|
||||
[this.sieveAllowFileintoInbox ? '' : 'INBOX'],
|
||||
[['', '']],
|
||||
null,
|
||||
(item) => (item ? item.localName() : '')
|
||||
)
|
||||
);
|
||||
|
||||
const
|
||||
fRemoveSystemFolderType = (observable) => () => {
|
||||
const folder = getFolderFromCacheList(observable());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue