From 1f999f1fb91b3ff428aa007617c2a0bac7c5777c Mon Sep 17 00:00:00 2001 From: Jose Oaxaca Date: Wed, 1 Mar 2023 13:51:47 -0500 Subject: [PATCH 1/2] #362 handle various file types --- .../components/slidepanel/mm-slidepanel.vue | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/resources/js/components/slidepanel/mm-slidepanel.vue b/resources/js/components/slidepanel/mm-slidepanel.vue index 4750383..6f96d9a 100644 --- a/resources/js/components/slidepanel/mm-slidepanel.vue +++ b/resources/js/components/slidepanel/mm-slidepanel.vue @@ -76,7 +76,7 @@ {{ this.data.created_at | moment("MMMM Do, YYYY") }}

- +
@@ -197,8 +197,36 @@ export default { handleContent(this.$store.state.selectedElem); this.close(); }, - copyImageHtml: function(image) { - let imageHtml = `
`; + copyHtml: function(file) { + let content = ``; + + switch(file.aggregate_type) { + + case 'image': + content = ``; + break; + + case 'video': + content = ``; + break; + + case 'audio': + content = ``; + break; + + default: + content = `