Dev branch
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<script setup>
|
||||
// This component reuses EmailCreateForm's logic via props.edit=true
|
||||
import EmailCreateForm from "./EmailCreateForm.vue";
|
||||
|
||||
const props = defineProps({
|
||||
show: { type: Boolean, default: false },
|
||||
person: { type: Object, required: true },
|
||||
types: { type: Array, default: () => [] },
|
||||
id: { type: Number, default: 0 },
|
||||
// Pass-through to show the auto-mail checkbox for clients
|
||||
isClientContext: { type: Boolean, default: false },
|
||||
});
|
||||
|
||||
const emit = defineEmits(["close"]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EmailCreateForm
|
||||
:show="show"
|
||||
:person="person"
|
||||
:types="types"
|
||||
:edit="true"
|
||||
:id="id"
|
||||
:is-client-context="isClientContext"
|
||||
@close="emit('close')"
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user