Commit 1999b23 1 parent f4c1f7e commit 1999b23 Copy full SHA for 1999b23
File tree 1 file changed +13
-1
lines changed
portal-frontend/src/app/features/home/inbox/inbox-table
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class InboxTableComponent {
41
41
itemsPerPage : this . itemsPerPage ,
42
42
sortDirection : this . sortDirection ,
43
43
sortField : this . sortField ,
44
- tableType : this . type === 'Notices of Intent' ? 'NOI' : this . type === 'Notifications' ? 'NOTI' : 'APP' ,
44
+ tableType : this . getTableType ( ) ,
45
45
} ) ;
46
46
}
47
47
@@ -57,4 +57,16 @@ export class InboxTableComponent {
57
57
await this . router . navigateByUrl ( link ) ;
58
58
}
59
59
}
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
+ }
60
72
}
You can’t perform that action at this time.
0 commit comments