mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
fix and rename variables + remove comments
This commit is contained in:
@@ -63,9 +63,9 @@ export default {
|
||||
create: window.buttonText || null,
|
||||
edit: window.buttonText || null
|
||||
},
|
||||
type: window.button.type || null,
|
||||
size: window.button.size || null,
|
||||
display: window.button.display //boolean, default: true
|
||||
type: window.buttonType || null,
|
||||
size: window.buttonSize || null,
|
||||
display: window.buttonDisplay //boolean, default: true
|
||||
},
|
||||
|
||||
/// Modal title text if create or edit address (trans chain, see i18n)
|
||||
|
@@ -226,7 +226,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
if (!this.step1WithModal) {
|
||||
console.log('Mounted now !');
|
||||
//console.log('Mounted now !');
|
||||
this.openShowPane();
|
||||
}
|
||||
},
|
||||
@@ -499,7 +499,7 @@ export default {
|
||||
submitAddress()
|
||||
{
|
||||
let payload = {
|
||||
entityId: this.context.entityId,
|
||||
entityId: this.context.entity.id,
|
||||
addressId: this.entity.address.address_id,
|
||||
body: {
|
||||
validFrom: {
|
||||
|
@@ -31,7 +31,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
sortedCountries() {
|
||||
console.log('sorted countries');
|
||||
//console.log('sorted countries');
|
||||
const countries = this.entity.loaded.countries;
|
||||
let sortedCountries = [];
|
||||
sortedCountries.push(...countries.filter(c => c.countryCode === 'FR'))
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
return name.fr //TODO multilang
|
||||
},
|
||||
selectCountry(value) {
|
||||
console.log('select country', value);
|
||||
//console.log('select country', value);
|
||||
this.entity.selected.country = value;
|
||||
this.$emit('getCities', value);
|
||||
}
|
||||
|
@@ -71,7 +71,7 @@
|
||||
<div v-if="flag.loading">
|
||||
{{ $t('loading') }}
|
||||
</div>
|
||||
<div v-if="errorMsg.length > 0" class="alert alert-danger">
|
||||
<div v-if="errorMsg && errorMsg.length > 0" class="alert alert-danger">
|
||||
{{ errors }}
|
||||
</div>
|
||||
<div v-if="flag.success" class="alert alert-success">
|
||||
|
Reference in New Issue
Block a user