summaryrefslogtreecommitdiffstats
path: root/src/models/constants.ts
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-22 16:36:18 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-24 13:47:00 +0200
commit87cfdf99a52989aab5d57ca0c4744242039107fe (patch)
tree058de480e5de85e517f77a76a4b373fea642e206 /src/models/constants.ts
parentea707a722e7cc8e9519f24145b231a0b1f3fdf3c (diff)
Support contacts member type
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models/constants.ts')
-rw-r--r--src/models/constants.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/models/constants.ts b/src/models/constants.ts
index ae7b4374..d8356e17 100644
--- a/src/models/constants.ts
+++ b/src/models/constants.ts
@@ -156,11 +156,21 @@ export const CIRCLES_MEMBER_GROUPING = [
share: OC.Share.SHARE_TYPE_EMAIL,
type: MEMBER_TYPE_MAIL
},
+ // TODO: implement SHARE_TYPE_CONTACT
+ {
+ id: `picker-contact`,
+ label: t('contacts', 'Contacts'),
+ share: OC.Share.SHARE_TYPE_EMAIL,
+ type: MEMBER_TYPE_CONTACT
+ },
]
// Generating a map between share types and circle member types
export const SHARES_TYPES_MEMBER_MAP = CIRCLES_MEMBER_GROUPING.reduce((list, entry) => {
- list[entry.share] = entry.type
+ // ! Ignore duplicate share types
+ if (!list[entry.share]) {
+ list[entry.share] = entry.type
+ }
return list
}, {})