From 7c34b5ce0adc1c6e84b5f584260d91c43bd49542 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 11 Dec 2024 17:11:07 +0530 Subject: [PATCH] feat: update contact design --- .../message/bubbles/Contact.vue | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) 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() {