We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4c1f7e + ef6d7dc commit 8b799c9Copy full SHA for 8b799c9
portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts
@@ -41,7 +41,7 @@ export class InboxTableComponent {
41
itemsPerPage: this.itemsPerPage,
42
sortDirection: this.sortDirection,
43
sortField: this.sortField,
44
- tableType: this.type === 'Notices of Intent' ? 'NOI' : this.type === 'Notifications' ? 'NOTI' : 'APP',
+ tableType: this.getTableType(),
45
});
46
}
47
@@ -57,4 +57,15 @@ export class InboxTableComponent {
57
await this.router.navigateByUrl(link);
58
59
60
+
61
+ private getTableType(): string {
62
+ switch (this.type) {
63
+ case 'Notice of Intent':
64
+ return 'NOI';
65
+ case 'Notification':
66
+ return 'NOTI';
67
+ default:
68
+ return 'APP';
69
+ }
70
71
0 commit comments