mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
all category
This commit is contained in:
committed by
Aiden McClelland
parent
9a517e7d8d
commit
2229e92c82
@@ -19,7 +19,7 @@ export class MarketplaceListPage {
|
|||||||
pkgsLoading = true
|
pkgsLoading = true
|
||||||
error = ''
|
error = ''
|
||||||
|
|
||||||
category = 'featured'
|
category = 'all'
|
||||||
query: string
|
query: string
|
||||||
|
|
||||||
data: MarketplaceData
|
data: MarketplaceData
|
||||||
@@ -38,7 +38,7 @@ export class MarketplaceListPage {
|
|||||||
private readonly apiService: ApiService,
|
private readonly apiService: ApiService,
|
||||||
private readonly modalCtrl: ModalController,
|
private readonly modalCtrl: ModalController,
|
||||||
private readonly wizardBaker: WizardBaker,
|
private readonly wizardBaker: WizardBaker,
|
||||||
private readonly patch: PatchDbModel,
|
public readonly patch: PatchDbModel,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
@@ -50,6 +50,7 @@ export class MarketplaceListPage {
|
|||||||
this.getPkgs(),
|
this.getPkgs(),
|
||||||
])
|
])
|
||||||
this.data = data
|
this.data = data
|
||||||
|
this.data.categories.unshift(this.category)
|
||||||
this.eos = eos
|
this.eos = eos
|
||||||
this.pkgs = pkgs
|
this.pkgs = pkgs
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -95,7 +96,7 @@ export class MarketplaceListPage {
|
|||||||
private async getPkgs (): Promise<AvailablePreview[]> {
|
private async getPkgs (): Promise<AvailablePreview[]> {
|
||||||
try {
|
try {
|
||||||
const pkgs = await this.apiService.getAvailableList({
|
const pkgs = await this.apiService.getAvailableList({
|
||||||
category: this.category,
|
category: this.category !== 'all' ? this.category : undefined,
|
||||||
query: this.query,
|
query: this.query,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
'per-page': this.perPage,
|
'per-page': this.perPage,
|
||||||
|
|||||||
Reference in New Issue
Block a user