From e9011c8dfd78f0f4ed6a0ea13508c7b06919f11a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 9 Mar 2019 22:31:29 -0700 Subject: [PATCH] Add lightbox to PostComponent --- .../assets/js/components/PostComponent.vue | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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(); } },