From c3268dcc4cf21b7c689d62045baee6c046afb3ca Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 11 Dec 2024 17:19:14 +0530 Subject: [PATCH] feat: update location bubble --- .../message/bubbles/Location.vue | 40 ++++++++++++++----- .../i18n/locale/en/conversation.json | 5 +++ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Location.vue b/app/javascript/dashboard/components-next/message/bubbles/Location.vue index df034324b..f9bec5f37 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Location.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Location.vue @@ -2,6 +2,7 @@ import { computed, onMounted, nextTick } from 'vue'; import BaseBubble from './Base.vue'; import Icon from 'next/icon/Icon.vue'; +import { useI18n } from 'vue-i18n'; import maplibregl from 'maplibre-gl'; /** @@ -28,6 +29,16 @@ const props = defineProps({ type: Array, required: true, }, + sender: { + type: Object, + default: () => ({}), + }, +}); + +const { t } = useI18n(); + +const senderName = computed(() => { + return props.sender.name; }); const attachment = computed(() => { @@ -75,23 +86,30 @@ onMounted(async () => {