mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
AddAddress: improve loading transition between step0/step1 and step2
This commit is contained in:
parent
dfc6ed9bf3
commit
f8d5dcf937
@ -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()
|
||||
|
@ -1,4 +1,4 @@
|
||||
<template>step3
|
||||
<template>
|
||||
|
||||
<div v-if="insideModal === false" class="loading">
|
||||
<i v-if="flag.loading" class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<template>step2
|
||||
<template>
|
||||
<div class="address-form">
|
||||
|
||||
<!-- Not display in modal -->
|
||||
|
@ -1,4 +1,4 @@
|
||||
<template>step1
|
||||
<template>
|
||||
|
||||
<div v-if="insideModal === false" class="loading">
|
||||
<i v-if="flag.loading" class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
|
||||
|
Loading…
x
Reference in New Issue
Block a user