From e09d2e7e280076703526cd71a515ef5d73927012 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Fri, 16 Jul 2021 12:55:56 -0600 Subject: [PATCH] fix loading issue --- .../marketplace-list/marketplace-list.page.ts | 1 + .../marketplace-show/marketplace-show.page.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts b/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts index bbdf23dac..df4e250af 100644 --- a/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts +++ b/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts @@ -59,6 +59,7 @@ export class MarketplaceListPage { data.categories = data.categories.filter(cat => this.category !== cat) } data.categories.unshift(this.category) + data.categories.push('all') this.eos = eos } catch (e) { console.error(e) diff --git a/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts b/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts index d69f960f3..7a6c3081d 100644 --- a/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts +++ b/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts @@ -51,7 +51,11 @@ export class MarketplaceShowPage { this.installedPkg = pkg }), ] - if (!this.marketplaceService.pkgs[this.pkgId]) { + + console.log(this.marketplaceService.pkgs[this.pkgId]) + if (this.marketplaceService.pkgs[this.pkgId]) { + this.loading = false + } else { this.getPkg() } }