Show + after the count if more pages are available

This commit is contained in:
itepechi 2023-08-11 06:08:02 +09:00
parent bd3f71b030
commit fd4b204ce5
1 changed files with 14 additions and 1 deletions

View File

@ -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