mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
AddAddress: adding useDate.validFrom/validTo options
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
v-bind:options="this.options"
|
||||
v-bind:default="this.default"
|
||||
v-bind:entity="this.entity"
|
||||
v-bind:valid="this.context.valid"
|
||||
v-bind:flag="this.flag"
|
||||
ref="showAddress">
|
||||
</show-address-pane>
|
||||
@@ -55,7 +54,6 @@
|
||||
v-bind:options="this.options"
|
||||
v-bind:default="this.default"
|
||||
v-bind:entity="this.entity"
|
||||
v-bind:valid="this.context.valid"
|
||||
v-bind:flag="this.flag"
|
||||
v-bind:insideModal="false"
|
||||
@openEditPane="openEditPane"
|
||||
@@ -153,6 +151,10 @@ export default {
|
||||
step1: true,
|
||||
step2: true,
|
||||
},
|
||||
useDate: {
|
||||
validFrom: false,
|
||||
validTo: false
|
||||
}
|
||||
},
|
||||
entity: {
|
||||
address: {}, // <== loaded and returned
|
||||
@@ -173,6 +175,10 @@ export default {
|
||||
writeNew: {
|
||||
address: false,
|
||||
postcode: false
|
||||
},
|
||||
valid: {
|
||||
from: new Date(),
|
||||
to: new Date()
|
||||
}
|
||||
},
|
||||
addressMap: {
|
||||
@@ -187,9 +193,6 @@ 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 (typeof this.options.bindModal !== 'undefined' && typeof this.options.bindModal.step1 !== 'undefined') ?
|
||||
this.options.bindModal.step1 : this.default.bindModal.step1;
|
||||
},
|
||||
@@ -236,6 +239,13 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
//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);
|
||||
console.log('options useDate.validFrom', this.options.useDate.validFrom);
|
||||
console.log('options useDate.validTo', this.options.useDate.validTo);
|
||||
|
||||
if (!this.step1WithModal) {
|
||||
//console.log('Mounted now !');
|
||||
this.openShowPane();
|
||||
|
Reference in New Issue
Block a user