Добавил одно окно создание клиента для двух кнопок

This commit is contained in:
megavrilinvv
2022-11-16 18:10:47 +03:00
parent 49ef6e22c3
commit 6f78177452
9 changed files with 36 additions and 90 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug">
clients-wrapper(@create-client="transmitOpenCreateForm", :is-close-header-form="isCloseHeaderForm")
clients-wrapper(:open-form="openForm")
</template>
<script>
@@ -8,12 +8,7 @@ export default {
name: "TheClients",
components: { ClientsWrapper },
props: {
isCloseHeaderForm: Boolean,
},
methods: {
transmitOpenCreateForm(value) {
this.$emit("create-client", value);
},
openForm: Function,
},
};
</script>