mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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>
|
<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>
|
<h3>{{ $t(getValidFromDateText) }}</h3>
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="validFrom"><i class="fa fa-fw fa-calendar"></i></span>
|
<span class="input-group-text" id="validFrom"><i class="fa fa-fw fa-calendar"></i></span>
|
||||||
@ -92,6 +92,9 @@ export default {
|
|||||||
default:
|
default:
|
||||||
return (this.context.edit) ? 'address_edit_success' : 'address_new_success';
|
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
|
/// Display each step in page or Modal
|
||||||
bindModal: {
|
bindModal: {
|
||||||
//step1: false, step2: false
|
//step1: false, step2: false
|
||||||
}
|
},
|
||||||
|
hideDateFrom: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user