Show + after the count if more pages are available
This commit is contained in:
parent
bd3f71b030
commit
fd4b204ce5
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue