mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Address: adding hideDateFrom option to hide field DateFrom on step1
This commit is contained in:
parent
160383e3a3
commit
7ba3e0287a
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -79,7 +79,8 @@ export default {
|
||||
/// Display each step in page or Modal
|
||||
bindModal: {
|
||||
//step1: false, step2: false
|
||||
}
|
||||
},
|
||||
hideDateFrom: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user