summaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-24 23:46:01 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-25 14:53:28 +0200
commitf3c1f13792d78e3617e3d3f726d1324f3ea576ee (patch)
tree29197f5d49c4cbc9c4d3bcf4d36fd25a2e09224f /src/models
parent19a56a6fba9ad82f9b0c34d92bb4cd256ae88a94 (diff)
Fixed select property
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models')
-rw-r--r--src/models/rfcProps.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js
index cae39970..e2cdb40b 100644
--- a/src/models/rfcProps.js
+++ b/src/models/rfcProps.js
@@ -140,7 +140,7 @@ const properties = {
default: true,
defaultValue: {
value: '',
- type: ['HOME,VOICE']
+ type: ['HOME', 'VOICE']
},
options: [
{ id: 'HOME,VOICE', name: t('contacts', 'Home') },
@@ -183,6 +183,7 @@ const properties = {
},
relationship: {
readableName: t('contacts', 'Relationship'),
+ force: 'select',
info: t(
'contacts',
'Specify a relationship between you and the entity represented by this vCard.'
@@ -234,6 +235,10 @@ const properties = {
},
gender: {
readableName: t('contacts', 'Gender'),
+ defaultValue: {
+ // default to Female 🙋
+ value: ['F']
+ },
options: [
{ id: 'F', name: t('contacts', 'Female') },
{ id: 'M', name: t('contacts', 'Male') },