diff options
author | hirschrobert <info@robert-hirsch.de> | 2019-01-11 12:29:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 12:29:12 +0100 |
commit | e1d30de594ba8e5011eb8bb3a79874b5afd65121 (patch) | |
tree | 531c153f66ea10a4f3cf357db810d4fb94a0b1b4 | |
parent | 131667f5fdf3d830084603da37590956a7c15424 (diff) | |
parent | c5b844f5f4195db8fd91f6c7740b1890268cfe53 (diff) |
Merge pull request #847 from nextcloud/gender
fix gender field select
-rw-r--r-- | src/models/rfcProps.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index 122736f2..937391f5 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -256,13 +256,10 @@ const properties = { }, gender: { readableName: t('contacts', 'Gender'), - defaultValue: { - // default to Female 🙋 - value: ['F'] - }, + force: 'select', options: [ - { id: 'F', name: t('contacts', 'Female') }, - { id: 'M', name: t('contacts', 'Male') }, + { id: 'F', name: t('contacts', 'Female'), xadd: 'X-WAB-GENDER:1' }, // Female first 🙋, TODO: make X-WAB-GENDER print in VCARD as well for MS compatibility + { id: 'M', name: t('contacts', 'Male'), xadd: 'X-WAB-GENDER:2' }, // TODO: make X-WAB-GENDER print in VCARD as well for MS compatibility { id: 'O', name: t('contacts', 'Other') } ] } |