= [];
+
+ constructor() {
+ const loginEmail = localStorage.getItem('loginEmail');
- constructor() { }
+ if (loginEmail && loginEmail.toLocaleLowerCase().startsWith('hod')) {
+ this.loginRole = 'Hod';
+ } else if (loginEmail && loginEmail.toLocaleLowerCase().startsWith('panel')) {
+ this.loginRole = 'Panel';
+ } else if (loginEmail && loginEmail.toLocaleLowerCase().startsWith('customer')) {
+ this.loginRole = 'Customer';
+ } else if (loginEmail && loginEmail.toLocaleLowerCase().startsWith('investigator')) {
+ this.loginRole = 'Investigator';
+ } else {
+ this.loginRole = 'Officer';
+ }
+
+ this.allowedNotifications = this.notifications.filter(notification => notification.roles.includes(this.loginRole));
+ }
ngOnInit(): void {
}
diff --git a/src/app/pages/investigate-business-entities-and-individuals/closing-remarks/closing-remarks.component.html b/src/app/pages/investigate-business-entities-and-individuals/closing-remarks/closing-remarks.component.html
index 0d387dc..b97adbf 100644
--- a/src/app/pages/investigate-business-entities-and-individuals/closing-remarks/closing-remarks.component.html
+++ b/src/app/pages/investigate-business-entities-and-individuals/closing-remarks/closing-remarks.component.html
@@ -1,6 +1,7 @@
-
Investigation complete
-
The investigation is complete, and the entity is marked as compliant.
+
Investigation {{ isNonCompliant ? 'underway' : 'complete' }}
+
The investigation is complete, and the entity is marked as compliant.
+
The entity is non-compliant, and requires further investigation.