Show pkg title in notes if manifest exists

This commit is contained in:
Drew Ansbacher
2022-02-22 10:02:36 -07:00
committed by Drew Ansbacher
parent b64785250f
commit af55d11ba1
2 changed files with 5 additions and 1 deletions

View File

@@ -76,7 +76,9 @@
<h2>
<b>
<span *ngIf="not['package-id']"
>{{ not['package-id'] }} -
>{{ patch.data['package-data'][not['package-id']] ?
patch.data['package-data'][not['package-id']].manifest.title :
not['package-id'] }} -
</span>
<ion-text [color]="getColor(not)"> {{ not.title }} </ion-text>
</b>

View File

@@ -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() {