From b3585b5001699da1b9bfe77d91429e02d36554e6 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Thu, 15 Jun 2023 12:50:27 +0530 Subject: [PATCH] feat: Attachment view improvements --- app/javascript/dashboard/components/Modal.vue | 5 + .../widgets/conversation/Message.vue | 10 +- .../conversation/components/GalleryView.vue | 249 +++++++++++++----- 3 files changed, 201 insertions(+), 63 deletions(-) diff --git a/app/javascript/dashboard/components/Modal.vue b/app/javascript/dashboard/components/Modal.vue index 8b762c60c..e7740cc35 100644 --- a/app/javascript/dashboard/components/Modal.vue +++ b/app/javascript/dashboard/components/Modal.vue @@ -8,6 +8,7 @@ >
-
+
({ + ...attachment, + sender: this.data.sender || {}, + created_at: this.data.created_at || '', + })); + }, shouldRenderMessage() { return ( this.hasAttachments || diff --git a/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue b/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue index 0f04c1d07..b54183ad4 100644 --- a/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue @@ -1,66 +1,104 @@