From e018e2ead93d0fb7044f6a3ca7e679be5c3f597c Mon Sep 17 00:00:00 2001 From: Raphael Beer Date: Thu, 9 Apr 2020 23:52:12 +0200 Subject: [PATCH] Review: add hasMore() computed value + Replacing varying conditions for same logic with computed value `hasMore`. --- webapp/components/features/FollowList/FollowList.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/webapp/components/features/FollowList/FollowList.vue b/webapp/components/features/FollowList/FollowList.vue index 3f5791438..be8c35e1a 100644 --- a/webapp/components/features/FollowList/FollowList.vue +++ b/webapp/components/features/FollowList/FollowList.vue @@ -13,7 +13,7 @@ /> this.connections.length + }, connectionsClass() { - const overflow = this.connections.length > 7 ? ' --overflow' : '' - return `connections${overflow}` + return `connections${this.hasMore ? '' : ' --overflow'}` }, filteredConnections() { if (!this.filter) {