diff options
author | Robert Hirsch Aspire <info@robert-hirsch.de> | 2019-01-05 23:27:43 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-11 12:08:17 +0100 |
commit | c5b844f5f4195db8fd91f6c7740b1890268cfe53 (patch) | |
tree | 531c153f66ea10a4f3cf357db810d4fb94a0b1b4 /src | |
parent | 131667f5fdf3d830084603da37590956a7c15424 (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 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') } ] } |