diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index c43cb79c..5799377a 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -55,7 +55,7 @@
- +
@@ -227,6 +227,19 @@
+ +
+ +
+
@@ -249,6 +262,7 @@ export default { likesPage: 1, shares: [], sharesPage: 1, + lightboxMedia: false } }, @@ -534,6 +548,11 @@ export default { ownerOrAdmin() { return this.owner() || this.admin(); + }, + + lightbox(src) { + this.lightboxMedia = src; + this.$refs.lightboxModal.show(); } },