diff --git a/app/javascript/dashboard/components-next/message/bubbles/Contact.vue b/app/javascript/dashboard/components-next/message/bubbles/Contact.vue index 4d6ee8ed8..83cf69eab 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Contact.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Contact.vue @@ -5,7 +5,6 @@ import { useStore } from 'dashboard/composables/store'; import { useI18n } from 'vue-i18n'; import BaseBubble from './Base.vue'; import Icon from 'next/icon/Icon.vue'; -import Button from 'next/button/Button.vue'; import { DuplicateContactException, @@ -40,6 +39,10 @@ const props = defineProps({ type: Array, required: true, }, + sender: { + type: Object, + default: () => ({}), + }, }); const $store = useStore(); @@ -49,6 +52,10 @@ const attachment = computed(() => { return props.attachments[0]; }); +const senderName = computed(() => { + return props.sender.name; +}); + const phoneNumber = computed(() => { return attachment.value.fallbackTitle; }); @@ -119,17 +126,29 @@ async function addContact() {