mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Treat Kolab folders as SystemFolder and show the type in User -> Settings -> Folders
This commit is contained in:
parent
524cafe689
commit
fb86d15c02
3 changed files with 24 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -93,4 +93,6 @@ export const
|
|||
})
|
||||
.then(clearTimer, clearTimer);
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
getKeyByValue = (o, v) => Object.keys(o).find(key => o[key] === v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue