@@ -11,6 +11,11 @@ interface Props {
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
// Emits
|
||||
const emit = defineEmits<{
|
||||
clicked: []
|
||||
}>()
|
||||
|
||||
const mailUiStore = useMailUiStore()
|
||||
const { showSnackbar } = useSnackbar()
|
||||
|
||||
@@ -51,6 +56,10 @@ const handleCompose = () => {
|
||||
|
||||
mailUiStore.openComposer(props.address, ComposerMode.Fresh)
|
||||
}
|
||||
|
||||
const handleClick = () => {
|
||||
emit('clicked')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -65,7 +74,7 @@ const handleCompose = () => {
|
||||
<span
|
||||
v-bind="activatorProps"
|
||||
class="address-activator"
|
||||
@click.stop
|
||||
@click="handleClick"
|
||||
>
|
||||
<slot
|
||||
:label="displayLabel"
|
||||
|
||||
Reference in New Issue
Block a user