Skip to content

Commit 8bcbea3

Browse files
committed
ftr: reactived isFromSender after be update
TRACEFOSS-939
1 parent 8e1900e commit 8bcbea3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/modules/page/investigations/core/investigation-helper.service.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)