Skip to content

Commit 8b799c9

Browse files
authored
Merge pull request #1990 from bcgov/hotfix/ALCS-2389-fix-method-call-on-table-change
ALCS-2389 Fix table change method call
2 parents f4c1f7e + ef6d7dc commit 8b799c9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

+12-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,15 @@ export class InboxTableComponent {
5757
await this.router.navigateByUrl(link);
5858
}
5959
}
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+
}
6071
}

0 commit comments

Comments
 (0)