Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreta committed Nov 19, 2024
2 parents afd483c + 8b799c9 commit daf1970
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 daf1970

Please sign in to comment.