fix: composition send responses and notifications
Signed-off-by: Sebastian <krupinski01@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { computed, ref, watch } from 'vue'
|
||||
import { useUser } from '@KTXC'
|
||||
import type { EntityObject, MessageObject } from '@MailManager/models'
|
||||
import { SecurityLevel } from '@/utile/emailSanitizer'
|
||||
import { useMailStore } from '@/stores/mailStore'
|
||||
import { useMailUiStore } from '@/stores/mailUiStore'
|
||||
import ReaderEmpty from './reader/ReaderEmpty.vue'
|
||||
import ReaderToolbar from './reader/ReaderToolbar.vue'
|
||||
import ReaderHeader from './reader/ReaderHeader.vue'
|
||||
@@ -26,7 +26,7 @@ const emit = defineEmits<{
|
||||
|
||||
// User settings
|
||||
const { getSetting } = useUser()
|
||||
const mailStore = useMailStore()
|
||||
const mailUiStore = useMailUiStore()
|
||||
|
||||
// Per-message overrides
|
||||
const allowImages = ref(false)
|
||||
@@ -101,7 +101,7 @@ const handleDownload = async (partIndex?: number) => {
|
||||
return
|
||||
}
|
||||
|
||||
await mailStore.downloadMessage(props.entity, partIndex)
|
||||
await mailUiStore.downloadMessage(props.entity, partIndex)
|
||||
}
|
||||
|
||||
const handleFlag = () => {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useSnackbar } from '@KTXC'
|
||||
import type { MessageAddressInterface } from '@MailManager/types/message'
|
||||
import { useMailUiStore } from '@/stores/mailUiStore'
|
||||
import { ComposerMode } from '@/types/composer'
|
||||
@@ -17,7 +16,6 @@ const emit = defineEmits<{
|
||||
}>()
|
||||
|
||||
const mailUiStore = useMailUiStore()
|
||||
const { showSnackbar } = useSnackbar()
|
||||
|
||||
const recipientLabel = computed(() => props.address?.label?.trim() || '')
|
||||
const recipientAddress = computed(() => props.address?.address?.trim() || '')
|
||||
@@ -32,7 +30,7 @@ const formattedAddress = computed(() => {
|
||||
const hasEmail = computed(() => recipientAddress.value.length > 0)
|
||||
|
||||
const showCopyResult = (message: string, color: 'success' | 'error') => {
|
||||
showSnackbar({ message, color })
|
||||
mailUiStore.notify(message, color)
|
||||
}
|
||||
|
||||
const copy = async (value: string, label: string) => {
|
||||
|
||||
Reference in New Issue
Block a user