From af55d11ba103302ccf3d17c38959f98eb946d4a2 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Tue, 22 Feb 2022 10:02:36 -0700 Subject: [PATCH] Show pkg title in notes if manifest exists --- .../ui/src/app/pages/notifications/notifications.page.html | 4 +++- .../ui/src/app/pages/notifications/notifications.page.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/projects/ui/src/app/pages/notifications/notifications.page.html b/frontend/projects/ui/src/app/pages/notifications/notifications.page.html index b3b9d4381..ac8492fc4 100644 --- a/frontend/projects/ui/src/app/pages/notifications/notifications.page.html +++ b/frontend/projects/ui/src/app/pages/notifications/notifications.page.html @@ -76,7 +76,9 @@

{{ not['package-id'] }} - + >{{ patch.data['package-data'][not['package-id']] ? + patch.data['package-data'][not['package-id']].manifest.title : + not['package-id'] }} - {{ not.title }} diff --git a/frontend/projects/ui/src/app/pages/notifications/notifications.page.ts b/frontend/projects/ui/src/app/pages/notifications/notifications.page.ts index 759e16366..fd6a12c74 100644 --- a/frontend/projects/ui/src/app/pages/notifications/notifications.page.ts +++ b/frontend/projects/ui/src/app/pages/notifications/notifications.page.ts @@ -13,6 +13,7 @@ import { import { ActivatedRoute } from '@angular/router' import { ErrorToastService } from 'src/app/services/error-toast.service' import { BackupReportPage } from 'src/app/modals/backup-report/backup-report.page' +import { PatchDbService } from 'src/app/services/patch-db/patch-db.service' @Component({ selector: 'notifications', @@ -34,6 +35,7 @@ export class NotificationsPage { private readonly modalCtrl: ModalController, private readonly errToast: ErrorToastService, private readonly route: ActivatedRoute, + public readonly patch: PatchDbService, ) {} async ngOnInit() {