Skip to content

Commit 6c9a9a4

Browse files
authored
added browser tab label for c&e (#2700)
1 parent af9db43 commit 6c9a9a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

alcs-frontend/src/app/features/compliance-and-enforcement/compliance-and-enforcement.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Component, OnDestroy, OnInit } from '@angular/core';
2+
import { Title } from '@angular/platform-browser';
23
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
34
import { Subject, takeUntil } from 'rxjs';
5+
import { environment } from '../../../environments/environment';
46
import { ComplianceAndEnforcementDto } from '../../services/compliance-and-enforcement/compliance-and-enforcement.dto';
57
import {
68
ComplianceAndEnforcementService,
@@ -32,6 +34,7 @@ export class ComplianceAndEnforcementComponent implements OnInit, OnDestroy {
3234
private readonly service: ComplianceAndEnforcementService,
3335
private readonly responsiblePartyService: ResponsiblePartiesService,
3436
private readonly toastService: ToastService,
37+
private readonly titleService: Title,
3538
) {}
3639

3740
ngOnInit(): void {
@@ -85,6 +88,10 @@ export class ComplianceAndEnforcementComponent implements OnInit, OnDestroy {
8588
? (owners[0].organizationName || owners[0].individualName) + (owners.length > 1 ? ' et al.' : '')
8689
: '';
8790
}
91+
92+
this.titleService.setTitle(
93+
`${environment.siteName} | ${this.file.fileNumber} (${this.propertyOwnerName || 'Unknown'})`,
94+
);
8895
}
8996
} catch (error) {
9097
console.error('Error loading file:', error);

0 commit comments

Comments
 (0)