Skip to content

Commit

Permalink
Merge pull request #1990 from bcgov/hotfix/ALCS-2389-fix-method-call-…
Browse files Browse the repository at this point in the history
…on-table-change

ALCS-2389 Fix table change method call
  • Loading branch information
fbarreta authored Nov 18, 2024
2 parents f4c1f7e + ef6d7dc commit 8b799c9
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class InboxTableComponent {
itemsPerPage: this.itemsPerPage,
sortDirection: this.sortDirection,
sortField: this.sortField,
tableType: this.type === 'Notices of Intent' ? 'NOI' : this.type === 'Notifications' ? 'NOTI' : 'APP',
tableType: this.getTableType(),
});
}

Expand All @@ -57,4 +57,15 @@ export class InboxTableComponent {
await this.router.navigateByUrl(link);
}
}

private getTableType(): string {
switch (this.type) {
case 'Notice of Intent':
return 'NOI';
case 'Notification':
return 'NOTI';
default:
return 'APP';
}
}
}

0 comments on commit 8b799c9

Please sign in to comment.