mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
AddAddress: improve loading transition between step0/step1 and step2
This commit is contained in:
@@ -380,15 +380,8 @@ export default {
|
||||
console.log('displaySuggestions');
|
||||
this.openSuggestPane();
|
||||
} else {
|
||||
if (this.flag.suggestPane === true) {
|
||||
this.closeSuggestPane();
|
||||
}
|
||||
if (this.flag.showPane === true) {
|
||||
this.closeShowPane();
|
||||
}
|
||||
console.log('step2: open the Edit panel');
|
||||
this.initForm();
|
||||
this.getCountries(); // will open edit pane when resolve promise
|
||||
this.getCountries(); // will open editPane when resolve promise
|
||||
}
|
||||
},
|
||||
closeEditPane() {
|
||||
@@ -463,6 +456,13 @@ export default {
|
||||
fetchCountries().then(
|
||||
countries => new Promise((resolve, reject) => {
|
||||
this.entity.loaded.countries = countries.results;
|
||||
if (this.flag.suggestPane === true) {
|
||||
this.closeSuggestPane();
|
||||
}
|
||||
if (this.flag.showPane === true) {
|
||||
this.closeShowPane();
|
||||
}
|
||||
console.log('step2: open the Edit panel');
|
||||
this.flag.editPane = true;
|
||||
this.flag.loading = false;
|
||||
resolve()
|
||||
|
Reference in New Issue
Block a user