mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
datePane, back to previous editPane
This commit is contained in:
parent
ca86eb3c56
commit
3ee0f4bf20
@ -380,7 +380,9 @@ export default {
|
|||||||
console.log('displaySuggestions');
|
console.log('displaySuggestions');
|
||||||
this.openSuggestPane();
|
this.openSuggestPane();
|
||||||
} else {
|
} else {
|
||||||
this.initForm();
|
if (this.flag.datePane === false) {
|
||||||
|
this.initForm(); // reset form except if we come back from datePane
|
||||||
|
}
|
||||||
this.getCountries(); // will open editPane when resolve promise
|
this.getCountries(); // will open editPane when resolve promise
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -456,11 +458,14 @@ export default {
|
|||||||
fetchCountries().then(
|
fetchCountries().then(
|
||||||
countries => new Promise((resolve, reject) => {
|
countries => new Promise((resolve, reject) => {
|
||||||
this.entity.loaded.countries = countries.results;
|
this.entity.loaded.countries = countries.results;
|
||||||
|
if (this.flag.showPane === true) {
|
||||||
|
this.closeShowPane();
|
||||||
|
}
|
||||||
if (this.flag.suggestPane === true) {
|
if (this.flag.suggestPane === true) {
|
||||||
this.closeSuggestPane();
|
this.closeSuggestPane();
|
||||||
}
|
}
|
||||||
if (this.flag.showPane === true) {
|
if (this.flag.datePane === true) {
|
||||||
this.closeShowPane();
|
this.flag.datePane = false;
|
||||||
}
|
}
|
||||||
console.log('step2: open the Edit panel');
|
console.log('step2: open the Edit panel');
|
||||||
this.flag.editPane = true;
|
this.flag.editPane = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user