WEB-601 Create env var for hidding client data information (#3010)

This commit is contained in:
Soni Jay
2026-01-18 15:27:12 -06:00
committed by GitHub
parent 3f025e1cda
commit 30c33ed378
8 changed files with 61 additions and 6 deletions
+14
View File
@@ -67,6 +67,20 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
export class ClientsComponent implements OnInit {
private clientService = inject(ClientsService);
/** Returns true if client data masking is enabled */
get hideClientData(): boolean {
return environment.complianceHideClientData;
}
/** Mask a client name */
maskName(name: string): string {
if (!name) return '';
return name
.split(' ')
.map((part) => (part.length > 1 ? part[0] + '*'.repeat(part.length - 1) : part))
.join(' ');
}
@ViewChild('showClosedAccounts') showClosedAccounts: MatCheckbox;
displayedColumns = [