-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/app/javascript/dashboard/components-next/message/chips/AttachmentGrid.vue b/app/javascript/dashboard/components-next/message/chips/AttachmentGrid.vue
new file mode 100644
index 000000000..7b5301ef8
--- /dev/null
+++ b/app/javascript/dashboard/components-next/message/chips/AttachmentGrid.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
diff --git a/app/javascript/dashboard/components-next/message/chips/Image.vue b/app/javascript/dashboard/components-next/message/chips/Image.vue
index 3a1ad1888..be0373a2f 100644
--- a/app/javascript/dashboard/components-next/message/chips/Image.vue
+++ b/app/javascript/dashboard/components-next/message/chips/Image.vue
@@ -11,7 +11,16 @@ defineProps({
type: Object,
required: true,
},
+ remainingCount: {
+ type: Number,
+ required: true,
+ },
+ shouldShowOverlay: {
+ type: Boolean,
+ required: true,
+ },
});
+
const hasError = ref(false);
const showGallery = ref(false);
@@ -20,12 +29,20 @@ const { filteredCurrentChatAttachments } = useMessageContext();
const handleError = () => {
hasError.value = true;
};
+
+const handleGalleryClick = () => {
+ showGallery.value = true;
+};
+
+const handleGalleryClose = () => {
+ showGallery.value = false;
+};
{
{{ $t('COMPONENTS.MEDIA.LOADING_FAILED') }}
+
![]()
{
@error="handleError"
/>
+
+
+
+ +{{ remainingCount }}
+
+
+
(showGallery = false)"
+ @close="handleGalleryClose"
/>
diff --git a/app/javascript/dashboard/components-next/message/chips/Video.vue b/app/javascript/dashboard/components-next/message/chips/Video.vue
index c9904b998..0c10d9aa3 100644
--- a/app/javascript/dashboard/components-next/message/chips/Video.vue
+++ b/app/javascript/dashboard/components-next/message/chips/Video.vue
@@ -10,17 +10,33 @@ defineProps({
type: Object,
required: true,
},
+ remainingCount: {
+ type: Number,
+ required: true,
+ },
+ shouldShowOverlay: {
+ type: Boolean,
+ required: true,
+ },
});
const showGallery = ref(false);
const { filteredCurrentChatAttachments } = useMessageContext();
+
+const handleGalleryClick = () => {
+ showGallery.value = true;
+};
+
+const handleGalleryClose = () => {
+ showGallery.value = false;
+};
+
+
+
+ +{{ remainingCount }}
+
+
(showGallery = false)"
+ @close="handleGalleryClose"
/>