From 3ee0f4bf20e9651f7dd50aecd91abbc2abf078d6 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 22 Sep 2021 16:35:43 +0200 Subject: [PATCH] datePane, back to previous editPane --- .../public/vuejs/Address/components/AddAddress.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue index a37cd4ee3..5a2cfc422 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue @@ -380,7 +380,9 @@ export default { console.log('displaySuggestions'); this.openSuggestPane(); } 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 } }, @@ -456,11 +458,14 @@ export default { fetchCountries().then( countries => new Promise((resolve, reject) => { this.entity.loaded.countries = countries.results; + if (this.flag.showPane === true) { + this.closeShowPane(); + } if (this.flag.suggestPane === true) { this.closeSuggestPane(); } - if (this.flag.showPane === true) { - this.closeShowPane(); + if (this.flag.datePane === true) { + this.flag.datePane = false; } console.log('step2: open the Edit panel'); this.flag.editPane = true;