Treat Kolab folders as SystemFolder and show the type in User -> Settings -> Folders

This commit is contained in:
djmaze 2021-10-21 17:15:00 +02:00
parent 524cafe689
commit fb86d15c02
3 changed files with 24 additions and 14 deletions

View file

@ -2,6 +2,7 @@ import ko from 'ko';
import { Notification, UploadErrorCode } from 'Common/Enums';
import { langLink } from 'Common/Links';
import { doc, createElement } from 'Common/Globals';
import { getKeyByValue } from 'Common/Utils';
let I18N_DATA = {};
@ -39,8 +40,6 @@ const
i18nKey = key => key.replace(/([a-z])([A-Z])/g, '$1_$2').toUpperCase(),
getKeyByValue = (o, v) => Object.keys(o).find(key => o[key] === v),
getNotificationMessage = code => {
let key = getKeyByValue(Notification, code);
if (key) {

View file

@ -93,4 +93,6 @@ export const
})
.then(clearTimer, clearTimer);
}
};
},
getKeyByValue = (o, v) => Object.keys(o).find(key => o[key] === v);