automatic IDE clean code

This commit is contained in:
2021-08-02 13:44:13 +02:00
parent 714d8b841c
commit ad55cc0477
7 changed files with 86 additions and 86 deletions

View File

@@ -6,16 +6,16 @@
@click="openModal">
{{ buttonText }}
</a>
<teleport to="body">
<modal v-if="modal.showModal"
:modalDialogClass="modal.modalDialogClass"
@close="modal.showModal = false">
<template v-slot:header>
<h3 class="modal-title">{{ $t(titleModal) }}</h3>
</template>
<template v-slot:body v-if="type === 'person'">
<on-the-fly-person
v-bind:id="id"
@@ -24,7 +24,7 @@
ref="castPerson">
</on-the-fly-person>
</template>
<template v-slot:body v-else-if="type === 'thirdparty'">
<on-the-fly-thirdparty
v-bind:id="id"
@@ -33,14 +33,14 @@
ref="castThirdparty">
</on-the-fly-thirdparty>
</template>
<template v-slot:body v-else>
<on-the-fly-create
v-bind:action="action"
ref="castNew">
</on-the-fly-create>
</template>
<template v-slot:footer>
<button v-if="action === 'show'"
@click="changeActionTo('edit')"
@@ -52,10 +52,10 @@
{{ $t('action.save')}}
</button>
</template>
</modal>
</teleport>
</template>
<script>
@@ -126,7 +126,7 @@ export default {
},
changeActionTo(action) {
// [BUG] clic first on show item button; in modal clic edit button; close modal; clic again on show item button
this.$data.action = action;
this.$data.action = action;
},
saveAction() {
console.log('saveAction');