mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
addAddress: allow other rootcomponent to not precise bindmodal options
This commit is contained in:
parent
c58d1eccc5
commit
6ab1391bd8
@ -187,14 +187,14 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
step1WithModal() {
|
||||
console.log('options displayText', this.options.button.displayText);
|
||||
console.log('options bindModal.step1', this.options.bindModal.step1);
|
||||
console.log('options bindModal.step2', this.options.bindModal.step2);
|
||||
return (this.options.bindModal !== null && typeof this.options.bindModal.step1 !== 'undefined') ?
|
||||
//console.log('options displayText', this.options.button.displayText);
|
||||
//console.log('options bindModal.step1', this.options.bindModal.step1);
|
||||
//console.log('options bindModal.step2', this.options.bindModal.step2);
|
||||
return (typeof this.options.bindModal !== 'undefined' && typeof this.options.bindModal.step1 !== 'undefined') ?
|
||||
this.options.bindModal.step1 : this.default.bindModal.step1;
|
||||
},
|
||||
step2WithModal() {
|
||||
let step2 = (this.options.bindModal !== null && typeof this.options.bindModal.step2 !== 'undefined') ?
|
||||
let step2 = (typeof this.options.bindModal !== 'undefined' && typeof this.options.bindModal.step2 !== 'undefined') ?
|
||||
this.options.bindModal.step2 : this.default.bindModal.step2;
|
||||
|
||||
if (step2 === false && this.step1WithModal === true) {
|
||||
|
@ -45,7 +45,9 @@ containers.forEach((container) => {
|
||||
bindModal: {
|
||||
step1: container.dataset.bindModalStep1 !== 'false', //boolean, default: true
|
||||
step2: container.dataset.bindModalStep2 !== 'false' //boolean, default: true
|
||||
}
|
||||
},
|
||||
// Hide ValidFrom Date fields
|
||||
//hideDateFrom: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user