From 42c6121ab9bd38f254664758972590a2e0d5ac42 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 6 Jul 2021 23:40:08 -0600 Subject: [PATCH] Update PostComponent, fix MomentUI like counter --- resources/assets/js/components/PostComponent.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 1526f047d..6e7a657ed 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -323,7 +323,7 @@
- {{ownerOrAdmin() ? (status.liked_by.total_count + 1) : 0}} + {{ownerOrAdmin == true ? (status.liked_by.total_count + 1) : 0}}
@@ -898,6 +898,10 @@ export default { return; } + if(u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') { + this.layout = 'moment'; + } + if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') { this.layout = 'metro'; }