diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-08 14:21:09 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-08 14:40:50 +0100 |
commit | ed793e4cf7e7a3e2049df0ac2286fdf03d9d2184 (patch) | |
tree | 6be4e9a1f76c76c2cb7c3550a5b3883e4ae9952d /src/models | |
parent | 8565a79ded16a4930d5433ae87b5e2eeffcb2d24 (diff) |
Use type for select and make sure default type is applied
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/rfcProps.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index bd404315..86f93c9e 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -230,8 +230,7 @@ const properties = { 'Specify a relationship between another entity and the entity represented by this vCard.' ), defaultValue: { - value: [''], - type: ['CONTACT'] + type: 'CONTACT' }, options: [ { id: 'CONTACT', name: t('contacts', 'Contact') }, @@ -255,9 +254,14 @@ const properties = { gender: { readableName: t('contacts', 'Gender'), force: 'select', + defaultValue: { + // default to Female 🙋 + type: 'F' + }, options: [ - { 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 + // TODO? make X-WAB-GENDER print in VCARD as well for MS compatibility + { id: 'F', name: t('contacts', 'Female') }, + { id: 'M', name: t('contacts', 'Male') }, { id: 'O', name: t('contacts', 'Other') } ] } |