feat: add showMeta

This commit is contained in:
Shivam Mishra
2024-12-02 15:14:23 +05:30
parent 801b4a3406
commit 15540dd633
@@ -68,11 +68,24 @@ const bccEmail = computed(() => {
const subject = computed(() => {
return props.contentAttributes?.email?.subject ?? '';
});
const showMeta = computed(() => {
return (
fromEmail.value[0] ||
toEmail.value.length ||
ccEmail.value.length ||
bccEmail.value.length ||
subject.value
);
});
</script>
<template>
<BaseBubble class="w-full">
<div class="p-4 text-n-slate-11 space-y-1 pr-9 border-b border-n-strong">
<div
v-if="showMeta"
class="p-4 text-n-slate-11 space-y-1 pr-9 border-b border-n-strong"
>
<div v-if="fromEmail[0]">
<span class="text-n-slate-12">{{ senderName }}</span>
&lt;{{ fromEmail[0] }}&gt;