Convert user stores to single object instances

Removed unused ContactUserStore.exportingCsv and ContactUserStore.exportingVcf
This commit is contained in:
djmaze 2021-03-10 22:41:35 +01:00
parent 914c6e8d14
commit 6a454ec624
46 changed files with 671 additions and 710 deletions

View file

@ -6,7 +6,7 @@ import { folderListOptionsBuilder } from 'Common/UtilsUser';
import { getFolderInboxName, getFolderFromCacheList } from 'Common/Cache';
import { SettingsGet } from 'Common/Globals';
class FolderUserStore {
export const FolderUserStore = new class {
constructor() {
ko.addObservablesTo(this, {
/**
@ -124,10 +124,6 @@ class FolderUserStore {
)
);
this.subscribers();
}
subscribers() {
const fRemoveSystemFolderType = (observable) => () => {
const folder = getFolderFromCacheList(observable());
if (folder) {
@ -200,6 +196,4 @@ class FolderUserStore {
return result.filter((value, index, self) => self.indexOf(value) == index);
}
}
export default new FolderUserStore();
};