mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-07 22:09:46 +00:00
#16 pass default variables to add-address component when it is called from another vue component
This commit is contained in:
@@ -5,6 +5,7 @@ import { fetchHouseholdByAddressReference } from 'ChillPersonAssets/lib/househol
|
||||
import { datetimeToISO, dateToISO, ISOToDate } from 'ChillMainAssets/chill/js/date.js';
|
||||
|
||||
const debug = process.env.NODE_ENV !== 'production';
|
||||
//console.log('AJAJAJA', window.addaddress);
|
||||
|
||||
const concerned = window.household_members_editor_data.persons.map(p => {
|
||||
return {
|
||||
@@ -115,6 +116,7 @@ const store = createStore({
|
||||
name: state.household.type,
|
||||
id: state.household.id
|
||||
},
|
||||
defaults: window.addaddress,
|
||||
suggestions: state.addressesSuggestion
|
||||
};
|
||||
} else {
|
||||
@@ -125,6 +127,7 @@ const store = createStore({
|
||||
name: state.household.type,
|
||||
id: state.household.id
|
||||
},
|
||||
defaults: window.addaddress,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user