mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
infinite scroll
This commit is contained in:
committed by
Aiden McClelland
parent
9dec1f18c2
commit
c2313b4eb3
@@ -83,4 +83,8 @@
|
||||
</ion-grid>
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
<ion-infinite-scroll [disabled]="!needInfinite" (ionInfinite)="doInfinite($event)">
|
||||
<ion-infinite-scroll-content loadingSpinner="lines"></ion-infinite-scroll-content>
|
||||
</ion-infinite-scroll>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -30,7 +30,7 @@ export class MarketplaceListPage {
|
||||
|
||||
page = 1
|
||||
needInfinite = false
|
||||
readonly perPage = 20
|
||||
readonly perPage = 30
|
||||
|
||||
subs: Subscription[] = []
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ export class MockApiService extends ApiService {
|
||||
}
|
||||
const url = `${registryURL}/marketplace/available/list?${params.category ? `category=${params.category}` : ''}&per-page=${params['per-page'] || '20'}&page=${params.page || '1'}&query=${params.query || ''}`
|
||||
let av = await this.http.simpleGet(url)
|
||||
return (av as any)
|
||||
return (av as any).services
|
||||
}
|
||||
|
||||
async getAvailableShow (params: RR.GetAvailableShowReq): Promise<RR.GetAvailableShowRes> {
|
||||
|
||||
Reference in New Issue
Block a user