mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
passing option binModalStep from twig include template
This commit is contained in:
@@ -65,8 +65,8 @@ export default {
|
||||
},
|
||||
/// Display each step in page or Modal
|
||||
bindModal: {
|
||||
//step1: false,
|
||||
//step2: false
|
||||
step1: window.binModalStep1,
|
||||
step2: window.binModalStep2
|
||||
},
|
||||
// Options only for root parent component
|
||||
displayResult: true,
|
||||
|
@@ -190,11 +190,11 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
step1WithModal() {
|
||||
return (this.options.bindModal && typeof this.options.bindModal.step1 !== 'undefined') ?
|
||||
return (this.options.bindModal !== null && typeof this.options.bindModal.step1 !== 'undefined') ?
|
||||
this.options.bindModal.step1 : this.default.bindModal.step1;
|
||||
},
|
||||
step2WithModal() {
|
||||
let step2 = (this.options.bindModal && typeof this.options.bindModal.step2 !== 'undefined') ?
|
||||
let step2 = (this.options.bindModal !== null && typeof this.options.bindModal.step2 !== 'undefined') ?
|
||||
this.options.bindModal.step2 : this.default.bindModal.step2;
|
||||
|
||||
if (step2 === false && this.step1WithModal === true) {
|
||||
|
Reference in New Issue
Block a user