Improved Kolab AddressBook/Contacts

This commit is contained in:
the-djmaze 2022-05-13 16:17:13 +02:00
parent 5c9b7d7000
commit 824311937a
42 changed files with 299 additions and 54 deletions

View file

@ -6,7 +6,7 @@ import { UNUSED_OPTION_VALUE } from 'Common/Consts';
import { forEachObjectEntry } from 'Common/Utils';
import { addObservablesTo, addSubscribablesTo, addComputablesTo } from 'External/ko';
import { getFolderInboxName, getFolderFromCacheList } from 'Common/Cache';
import { Settings } from 'Common/Globals';
import { Settings, SettingsCapa } from 'Common/Globals';
//import Remote from 'Remote/User/Fetch'; // Circular dependency
export const FolderUserStore = new class {
@ -117,6 +117,10 @@ export const FolderUserStore = new class {
return this.capabilities().includes(name);
}
allowKolab() {
return FolderUserStore.hasCapability('METADATA') && SettingsCapa('Kolab');
}
/**
* @returns {Array}
*/