Skip to content

Commit

Permalink
delete double import on rout
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas committed Dec 16, 2024
1 parent a121a87 commit db098e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
import { Router as Route, Router } from '@angular/router';
import { Router } from '@angular/router';
import { LocationData } from '@app/components/wildfires-list-header/filter-by-location/filter-by-location-dialog.component';
import { AGOLService, AgolOptions } from '@app/services/AGOL-service';
import { PublishedIncidentService } from '@app/services/published-incident-service';
Expand Down Expand Up @@ -57,7 +57,6 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit {
private appConfigService: AppConfigService,
private agolService: AGOLService,
private publishedIncidentService: PublishedIncidentService,
private route: Route,
private watchlistService: WatchlistService,
private commonUtilityService: CommonUtilityService,
private metaService: Meta,
Expand Down Expand Up @@ -245,7 +244,7 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit {

navToMap() {
setTimeout(() => {
this.route.navigate([ResourcesRoutes.ACTIVEWILDFIREMAP], {
this.router.navigate([ResourcesRoutes.ACTIVEWILDFIREMAP], {
queryParams: {
longitude: this.restrictionData.centroidLongitude,
latitude: this.restrictionData.centroidLatitude,
Expand Down Expand Up @@ -283,7 +282,8 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit {
}

navToBulletinUrl() {
window.open(this.restrictionData.bulletinUrl ? this.restrictionData.bulletinUrl : this.appConfigService.getConfig().externalAppConfig['currentRestrictions'] as unknown as string, '_blank');
window.open(this.restrictionData.bulletinUrl ? this.restrictionData.bulletinUrl
: this.appConfigService.getConfig().externalAppConfig['currentRestrictions'] as unknown as string, '_blank');
}

onWatchlist(incident): boolean {
Expand Down

0 comments on commit db098e5

Please sign in to comment.