mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add sampleNames to kind list summary
This commit is contained in:
parent
021a05ee1c
commit
aeedb6d2e3
1 changed files with 7 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ import {
|
||||||
PaginatedList,
|
PaginatedList,
|
||||||
defaultPerPage
|
defaultPerPage
|
||||||
} from '~/helpers/api/pagination.js'
|
} from '~/helpers/api/pagination.js'
|
||||||
|
import {
|
||||||
|
makeSummaryOfListings
|
||||||
|
} from '~/helpers/categories.js'
|
||||||
|
|
||||||
function makeKindEndpoint ({ kindSlug, number = null }) {
|
function makeKindEndpoint ({ kindSlug, number = null }) {
|
||||||
if ( number ) {
|
if ( number ) {
|
||||||
|
|
@ -45,7 +48,10 @@ export class KindList extends PaginatedList {
|
||||||
|
|
||||||
makeSummary () {
|
makeSummary () {
|
||||||
// console.log( `Summary run ${ timeSummaryRun += 1 } times` )
|
// console.log( `Summary run ${ timeSummaryRun += 1 } times` )
|
||||||
return getListSummaryNumbers( this.list )
|
return {
|
||||||
|
...getListSummaryNumbers( this.list ),
|
||||||
|
sampleNames: makeSummaryOfListings({ list: this.list })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
summary = this.makeSummary()
|
summary = this.makeSummary()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue