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