diff --git a/app/javascript/dashboard/components-next/message/InstagramMessages.story.vue b/app/javascript/dashboard/components-next/message/InstagramMessages.story.vue new file mode 100644 index 000000000..3ba46c3a9 --- /dev/null +++ b/app/javascript/dashboard/components-next/message/InstagramMessages.story.vue @@ -0,0 +1,46 @@ + + + diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue index 42a62e275..ef5f7bbe3 100644 --- a/app/javascript/dashboard/components-next/message/Message.vue +++ b/app/javascript/dashboard/components-next/message/Message.vue @@ -17,6 +17,7 @@ import ActivityBubble from './bubbles/Activity.vue'; import ImageBubble from './bubbles/Image.vue'; import FileBubble from './bubbles/File.vue'; import AudioBubble from './bubbles/Audio.vue'; +import VideoBubble from './bubbles/Video.vue'; import AttachmentsBubble from './bubbles/Attachments.vue'; import EmailBubble from './bubbles/Email/Index.vue'; @@ -242,6 +243,8 @@ const componentToRender = computed(() => { if (fileType === ATTACHMENT_TYPES.IMAGE) return ImageBubble; if (fileType === ATTACHMENT_TYPES.FILE) return FileBubble; if (fileType === ATTACHMENT_TYPES.AUDIO) return AudioBubble; + if (fileType === ATTACHMENT_TYPES.VIDEO) return VideoBubble; + if (fileType === ATTACHMENT_TYPES.IG_REEL) return VideoBubble; } if (props.attachments.length > 1 && !props.content) { diff --git a/app/javascript/dashboard/components-next/message/bubbles/Video.vue b/app/javascript/dashboard/components-next/message/bubbles/Video.vue new file mode 100644 index 000000000..f9a06a0db --- /dev/null +++ b/app/javascript/dashboard/components-next/message/bubbles/Video.vue @@ -0,0 +1,60 @@ + + +