mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Re-establish normal behavior for component within twig
This commit is contained in:
parent
ab23a4efb5
commit
12dff82248
@ -12,6 +12,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul v-if="!showModal" class="record_actions">
|
||||
<li>
|
||||
<a class="btn btn-sm btn-create mt-3" @click="openModal">
|
||||
{{ trans(ACPW_DUPLICATE_SELECT_ACCOMPANYING_PERIOD_WORK) }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<teleport to="body">
|
||||
<modal
|
||||
v-if="showModal"
|
||||
@ -89,6 +98,10 @@ watch(selectedAcpw, (newValue) => {
|
||||
inputField.value = String(newValue?.id);
|
||||
}
|
||||
});
|
||||
|
||||
const openModal = () => {
|
||||
showModal.value = true
|
||||
}
|
||||
const closeModal = () => {
|
||||
showModal.value = false
|
||||
emit('closeModal')
|
||||
|
Loading…
x
Reference in New Issue
Block a user