summaryrefslogtreecommitdiffstats
path: root/src/models/constants.ts
diff options
context:
space:
mode:
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
}, {})