summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreta Doci <gretadoci@gmail.com>2019-10-17 12:36:41 +0200
committerGreta Doci <gretadoci@gmail.com>2019-10-17 12:36:41 +0200
commit3f764203061221a838e0890a8cf4a36034158932 (patch)
tree0506014d8612ead8ad72bb6b65258af082befe33 /src
parent40ad45acd70764b0395557dc6f0f0b58cc3fa781 (diff)
Make the work profile the default one when adding Contacts
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/models/rfcProps.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js
index 89361a43..aaeed79e 100644
--- a/src/models/rfcProps.js
+++ b/src/models/rfcProps.js
@@ -27,6 +27,7 @@ import ActionCopyNtoFN from '../components/Actions/ActionCopyNtoFN'
import ActionToggleYear from '../components/Actions/ActionToggleYear'
import zones from './zones'
+const defaultProfileState = loadState('contacts', 'defaultProfile')
const localesState = loadState('contacts', 'locales')
const locales = localesState
? localesState.map(({ code, name }) => ({
@@ -83,7 +84,7 @@ const properties = {
force: 'text',
defaultValue: {
value: [''],
- type: ['HOME']
+ type: [defaultProfileState]
},
options: [
{ id: 'HOME', name: t('contacts', 'Home') },
@@ -108,7 +109,7 @@ const properties = {
default: true,
defaultValue: {
value: ['', '', '', '', '', '', ''],
- type: ['HOME']
+ type: [defaultProfileState]
},
options: [
{ id: 'HOME', name: t('contacts', 'Home') },
@@ -151,7 +152,7 @@ const properties = {
default: true,
defaultValue: {
value: '',
- type: ['HOME']
+ type: [defaultProfileState]
},
options: [
{ id: 'HOME', name: t('contacts', 'Home') },