diff options
author | Robert Hirsch Aspire <info@robert-hirsch.de> | 2019-01-05 23:27:43 +0100 |
---|---|---|
committer | Robert Hirsch Aspire <info@robert-hirsch.de> | 2019-01-05 23:27:43 +0100 |
commit | 8565a79ded16a4930d5433ae87b5e2eeffcb2d24 (patch) | |
tree | e74efac541d566573ed1d3cfcffbbc6bee73cef7 /src | |
parent | 783e0927506fbb034c45c18cf47702ae502e72f6 (diff) |
fix gender field select
Signed-off-by: Robert Hirsch <info@robert-hirsch.de>
Diffstat (limited to 'src')
-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 0258d9b1..bd404315 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -254,13 +254,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') } ] } |