From fd4b204ce5d92cf1d9beff71a312002b5add5f99 Mon Sep 17 00:00:00 2001 From: itepechi <72330683+itepechi@users.noreply.github.com> Date: Fri, 11 Aug 2023 06:08:02 +0900 Subject: [PATCH] Show + after the count if more pages are available --- src/components/search/search.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/search/search.js b/src/components/search/search.js index 8d4212cd..0c00b164 100644 --- a/src/components/search/search.js +++ b/src/components/search/search.js @@ -106,7 +106,20 @@ const Search = { }, resultCount (tabName) { const length = this[tabName].length - return length === 0 ? '' : ` (${length})` + return ( + length === 0 + ? '' + : ` (${ + length + ( + tabName === "visibleStatuses" && + this.lastStatusFetchCount !== 0 && + !this.loading && + this.loaded + ? '+' + : '' + ) + })` + ) }, onResultTabSwitch (key) { this.currenResultTab = key