Resolve issue #112

This commit is contained in:
djmaze 2021-08-19 15:14:47 +02:00
parent 1f9e96f107
commit ba477e25ff
12 changed files with 82 additions and 106 deletions

View file

@ -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());