Skip to content

Commit

Permalink
WFNEWS-2131 Trim fire name and add name to params for routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylver93 committed Apr 22, 2024
1 parent fe897cb commit 9f54127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class EvacAlertFullDetailsComponent implements OnInit {
this.publishedIncidentService.fetchPublishedIncident(eventNumber).subscribe(response => {
if (response) {
simpleIncident.discoveryDate = convertToDateYear(response.discoveryDate);
simpleIncident.incidentName = response.incidentName + ' Wildfire';
simpleIncident.incidentName = response.incidentName.replace('Fire', '').trim() + ' Wildfire';
simpleIncident.fireCentreName = response.fireCentreName;
simpleIncident.fireYear = response.fireYear;
simpleIncident.incidentNumberLabel = response.incidentNumberLabel;
Expand Down Expand Up @@ -266,6 +266,7 @@ export class EvacAlertFullDetailsComponent implements OnInit {
source: [ResourcesRoutes.FULL_DETAILS],
sourceId: this.id,
sourceType: 'evac-alert',
name: this.name
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class EvacOrderFullDetailsComponent extends EvacAlertFullDetailsComponent
source: [ResourcesRoutes.FULL_DETAILS],
sourceId: this.id,
sourceType: 'evac-order',
name: this.name
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ this.router.navigate([ResourcesRoutes.FULL_DETAILS], {
queryParams: {
type: this.params['sourceType'],
id: this.params['sourceId'],
name: this.params['name']
},
});
} else if (
Expand Down

0 comments on commit 9f54127

Please sign in to comment.