Skip to content

Commit

Permalink
feat(ExpandedAttributes): Add support for residence_permit...
Browse files Browse the repository at this point in the history
expirationDate, phone, email and birthday
  • Loading branch information
JF-Cozy committed Apr 3, 2023
1 parent f410942 commit 90c3af0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
13 changes: 11 additions & 2 deletions react/MuiCozyTheme/ListItem/ExpandedAttributes/helpers.js
Expand Up @@ -10,7 +10,14 @@ export const normalizeExpandedAttribute = attr =>

// attributes not considered as expanded attributes
export const notExpandedAttributes = {
'io.cozy.contacts': ['fullname', 'civility', 'note'],
'io.cozy.contacts': [
'fullname',
'civility',
'note',
'flexsearchProps:translated:phone',
'flexsearchProps:translated:email',
'flexsearchProps:translated:birthday'
],
'io.cozy.files': [
'name',
'flexsearchProps:translated:qualificationLabel',
Expand All @@ -21,7 +28,9 @@ export const notExpandedAttributes = {
'flexsearchProps:translated:vehicleRegistration',
'flexsearchProps:translated:nationalIdCard',
'flexsearchProps:translated:bankDetails',
'flexsearchProps:translated:passport'
'flexsearchProps:translated:passport',
'flexsearchProps:translated:residencePermit',
'flexsearchProps:translated:expirationDate'
]
}

Expand Down
3 changes: 2 additions & 1 deletion react/MuiCozyTheme/ListItem/locales/en.json
Expand Up @@ -32,7 +32,8 @@
"vehicle_registration": "Vehicle registration number (VIN)",
"national_id_card": "National ID card number",
"bank_details": "IBAN number",
"passport": "Passport number"
"passport": "Passport number",
"residence_permit": "License number"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion react/MuiCozyTheme/ListItem/locales/fr.json
Expand Up @@ -32,7 +32,8 @@
"vehicle_registration": "Numéro de la carte grise (VIN)",
"national_id_card": "Numéro de la carte d'identité",
"bank_details": "Numéro d'IBAN",
"passport": "Numéro du passeport"
"passport": "Numéro du passeport",
"residence_permit": "Numéro du permis"
}
}
},
Expand Down

0 comments on commit 90c3af0

Please sign in to comment.