diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-01-09 09:32:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 09:32:39 +0100 |
commit | 11cbf840dbed6457731806993734e9d2409e668e (patch) | |
tree | 0799891492d2c5598e8da84f9bd0f4b317ebe7c6 /src/models | |
parent | e1ec0b4521b640c7fc1fdfa4b136a63d315877b9 (diff) | |
parent | d7727d251e97b913365df3967d1d59196d084cc2 (diff) |
Merge pull request #825 from nextcloud/gender
fix gender field select
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/rfcProps.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index 122736f2..397d66f1 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -56,7 +56,6 @@ const properties = { readableName: t('contacts', 'Federated Cloud ID'), force: 'text', defaultValue: { - value: [''], type: ['HOME'] }, options: [ @@ -118,7 +117,6 @@ const properties = { icon: 'icon-mail', default: true, defaultValue: { - value: '', type: ['HOME'] }, options: [ @@ -132,7 +130,6 @@ const properties = { readableName: t('contacts', 'Instant messaging'), icon: 'icon-comment', defaultValue: { - value: [''], type: ['SKYPE'] }, options: [ @@ -149,7 +146,6 @@ const properties = { icon: 'icon-phone', default: true, defaultValue: { - value: '', type: ['HOME', 'VOICE'] }, options: [ @@ -176,8 +172,7 @@ const properties = { icon: 'icon-social', readableName: t('contacts', 'Social network'), defaultValue: { - value: '', - type: ['facebook'] + type: ['FACEBOOK'] }, info: t( 'contacts', @@ -208,6 +203,9 @@ const properties = { 'contacts', 'Specify a relationship between you and the entity represented by this vCard.' ), + defaultValue: { + type: ['COLLEAGUE'] + }, options: [ { id: 'SPOUSE', name: t('contacts', 'Spouse') }, { id: 'CHILD', name: t('contacts', 'Child') }, @@ -232,7 +230,6 @@ const properties = { 'Specify a relationship between another entity and the entity represented by this vCard.' ), defaultValue: { - value: [''], type: ['CONTACT'] }, options: [ @@ -256,11 +253,13 @@ const properties = { }, gender: { readableName: t('contacts', 'Gender'), + force: 'select', defaultValue: { // default to Female 🙋 - value: ['F'] + type: ['F'] }, options: [ + // 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') } |