@@ -56,24 +56,24 @@ export class InvestigationHelperService {
5656 }
5757
5858 public showApproveButton ( { status, isFromSender } = { } as Notification ) : boolean {
59- return /* isFromSender &&*/ status === NotificationStatus . CREATED && this . roleService . isAtLeastSupervisor ( ) ;
59+ return isFromSender && status === NotificationStatus . CREATED && this . roleService . isAtLeastSupervisor ( ) ;
6060 }
6161
6262 public showCancelButton ( { status, isFromSender } = { } as Notification ) : boolean {
63- return /* isFromSender &&*/ status === NotificationStatus . CREATED && this . roleService . isAtLeastSupervisor ( ) ;
63+ return isFromSender && status === NotificationStatus . CREATED && this . roleService . isAtLeastSupervisor ( ) ;
6464 }
6565
6666 public showCloseButton ( { status, isFromSender } = { } as Notification ) : boolean {
6767 const disallowedStatus = [ NotificationStatus . CREATED , NotificationStatus . CLOSED , NotificationStatus . CANCELED ] ;
68- return /* isFromSender &&*/ ! disallowedStatus . includes ( status ) && this . roleService . isAtLeastSupervisor ( ) ;
68+ return isFromSender && ! disallowedStatus . includes ( status ) && this . roleService . isAtLeastSupervisor ( ) ;
6969 }
7070 public showAcknowledgeButton ( { status, isFromSender } = { } as Notification ) : boolean {
71- return /* !isFromSender &&*/ status === NotificationStatus . RECEIVED && this . roleService . isAtLeastSupervisor ( ) ;
71+ return ! isFromSender && status === NotificationStatus . RECEIVED && this . roleService . isAtLeastSupervisor ( ) ;
7272 }
7373 public showAcceptButton ( { status, isFromSender } = { } as Notification ) : boolean {
74- return /* !isFromSender &&*/ status === NotificationStatus . ACKNOWLEDGED && this . roleService . isAtLeastSupervisor ( ) ;
74+ return ! isFromSender && status === NotificationStatus . ACKNOWLEDGED && this . roleService . isAtLeastSupervisor ( ) ;
7575 }
7676 public showDeclineButton ( { status, isFromSender } = { } as Notification ) : boolean {
77- return /* !isFromSender &&*/ status === NotificationStatus . ACKNOWLEDGED && this . roleService . isAtLeastSupervisor ( ) ;
77+ return ! isFromSender && status === NotificationStatus . ACKNOWLEDGED && this . roleService . isAtLeastSupervisor ( ) ;
7878 }
7979}
0 commit comments