Skip to content

Commit 1999b23

Browse files
committed
ALCS-2389 Fix table change method call
1 parent f4c1f7e commit 1999b23

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class InboxTableComponent {
4141
itemsPerPage: this.itemsPerPage,
4242
sortDirection: this.sortDirection,
4343
sortField: this.sortField,
44-
tableType: this.type === 'Notices of Intent' ? 'NOI' : this.type === 'Notifications' ? 'NOTI' : 'APP',
44+
tableType: this.getTableType(),
4545
});
4646
}
4747

@@ -57,4 +57,16 @@ export class InboxTableComponent {
5757
await this.router.navigateByUrl(link);
5858
}
5959
}
60+
61+
private getTableType(): string {
62+
console.log(this.type);
63+
switch (this.type) {
64+
case 'Notice of Intent':
65+
return 'NOI';
66+
case 'Notification':
67+
return 'NOTI';
68+
default:
69+
return 'APP';
70+
}
71+
}
6072
}

0 commit comments

Comments
 (0)