Address: adding hideDateFrom option to hide field DateFrom on step1

This commit is contained in:
Mathieu Jaumotte 2021-08-17 17:24:27 +02:00
parent 160383e3a3
commit 7ba3e0287a
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<show-address :address="address"></show-address>
<div v-if="!context.edit" class='address-valid date-since'>
<div v-if="showDateFrom" class='address-valid date-since'>
<h3>{{ $t(getValidFromDateText) }}</h3>
<div class="input-group mb-3">
<span class="input-group-text" id="validFrom"><i class="fa fa-fw fa-calendar"></i></span>
@ -92,6 +92,9 @@ export default {
default:
return (this.context.edit) ? 'address_edit_success' : 'address_new_success';
}
},
showDateFrom() {
return !this.context.edit && !this.options.hideDateFrom;
}
}
};

View File

@ -79,7 +79,8 @@ export default {
/// Display each step in page or Modal
bindModal: {
//step1: false, step2: false
}
},
hideDateFrom: true
}
}
}