mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
infinite scroll
This commit is contained in:
committed by
Aiden McClelland
parent
9dec1f18c2
commit
c2313b4eb3
@@ -83,4 +83,8 @@
|
|||||||
</ion-grid>
|
</ion-grid>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</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>
|
</ion-content>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class MarketplaceListPage {
|
|||||||
|
|
||||||
page = 1
|
page = 1
|
||||||
needInfinite = false
|
needInfinite = false
|
||||||
readonly perPage = 20
|
readonly perPage = 30
|
||||||
|
|
||||||
subs: Subscription[] = []
|
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 || ''}`
|
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)
|
let av = await this.http.simpleGet(url)
|
||||||
return (av as any)
|
return (av as any).services
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAvailableShow (params: RR.GetAvailableShowReq): Promise<RR.GetAvailableShowRes> {
|
async getAvailableShow (params: RR.GetAvailableShowReq): Promise<RR.GetAvailableShowRes> {
|
||||||
|
|||||||
Reference in New Issue
Block a user