refactor: improve logic
Signed-off-by: Sebastian <krupinski01@gmail.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { useUser } from '@KTXC'
|
||||
import type { EntityInterface } from '@MailManager/types/entity'
|
||||
import type { MessageInterface } from '@MailManager/types/message'
|
||||
import type { EntityObject } from '@MailManager/models'
|
||||
import { MessageObject } from '@MailManager/models/message'
|
||||
import { SecurityLevel } from '@/utile/emailSanitizer'
|
||||
import ReaderEmpty from './reader/ReaderEmpty.vue'
|
||||
@@ -12,7 +11,7 @@ import ReaderBody from './reader/ReaderBody.vue'
|
||||
|
||||
// Props
|
||||
interface Props {
|
||||
message?: EntityInterface<MessageInterface> | null
|
||||
message?: EntityObject | null
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
@@ -22,11 +21,11 @@ const { getSetting } = useUser()
|
||||
|
||||
// Emits
|
||||
const emit = defineEmits<{
|
||||
reply: [message: EntityInterface<MessageInterface>]
|
||||
forward: [message: EntityInterface<MessageInterface>]
|
||||
move: [message: EntityInterface<MessageInterface>]
|
||||
delete: [message: EntityInterface<MessageInterface>]
|
||||
flag: [message: EntityInterface<MessageInterface>]
|
||||
reply: [message: EntityObject]
|
||||
forward: [message: EntityObject]
|
||||
move: [message: EntityObject]
|
||||
delete: [message: EntityObject]
|
||||
flag: [message: EntityObject]
|
||||
compose: []
|
||||
}>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user