mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 01:55:01 +00:00
address selection: order preferred countries
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
const fetchCountries = () => {
|
||||
console.log('<<< fetching countries');
|
||||
|
||||
const url = `/api/1.0/main/country.json`;
|
||||
const url = `/api/1.0/main/country.json?item_per_page=1000`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
@@ -21,6 +21,7 @@ const fetchCountries = () => {
|
||||
const fetchCities = (country) => {
|
||||
console.log('<<< fetching cities for', country);
|
||||
//TODO use country
|
||||
//TODO deal with huge number of postal code ... we should do suggestion...
|
||||
const url = `/api/1.0/main/postal-code.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
|
Reference in New Issue
Block a user