mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
This pull request includes changes to various components adding a `skip-context-menu` class to ensure the system context menu opens instead of the Chatwoot message one --------- Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Pranav <pranavrajs@gmail.com>
22 lines
526 B
Vue
22 lines
526 B
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import BaseBubble from './Base.vue';
|
|
import AudioChip from 'next/message/chips/Audio.vue';
|
|
import { useMessageContext } from '../provider.js';
|
|
|
|
const { attachments } = useMessageContext();
|
|
|
|
const attachment = computed(() => {
|
|
return attachments.value[0];
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<BaseBubble class="bg-transparent" data-bubble-name="audio">
|
|
<AudioChip
|
|
:attachment="attachment"
|
|
class="p-2 text-n-slate-12 skip-context-menu"
|
|
/>
|
|
</BaseBubble>
|
|
</template>
|