Skip to content

Commit

Permalink
NRPT-620: Adding popups on LNG pipeline segments (#799)
Browse files Browse the repository at this point in the history
* popups added. Still need to add api services

* NRPT-620: created connections to API to fetch segment data

* NRPT-620: recommit to show verified author

* NRPT-620: fixed popup cursor, code formatting, behavior when API not hit

* removed migrations file as this was already added in #979
  • Loading branch information
cameronpettit authored Mar 10, 2021
1 parent 3178f10 commit 7a38ee1
Show file tree
Hide file tree
Showing 6 changed files with 435 additions and 114 deletions.
6 changes: 4 additions & 2 deletions angular/projects/public-lng/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ComplianceResolver } from './project/compliance/compliance-resolver';
import { AuthorizationsResolver } from './project/authorizations/authorizations-resolver';
import { PlansResolver } from './project/plans/plans-resolver';
import { NationsResolver } from './project/nations/nations-resolver';
import { MapLayerInfoResolver } from './applications/applications.resolver';

const routes: Routes = [
{
Expand Down Expand Up @@ -57,7 +58,8 @@ const routes: Routes = [
},
{
path: 'map',
component: ApplicationsComponent
component: ApplicationsComponent,
resolve: { data: MapLayerInfoResolver }
},
{
path: 'faq',
Expand All @@ -84,7 +86,7 @@ const routes: Routes = [
onSameUrlNavigation: 'reload'
})
],
providers: [ComplianceResolver, AuthorizationsResolver, PlansResolver, NationsResolver],
providers: [ComplianceResolver, AuthorizationsResolver, PlansResolver, NationsResolver, MapLayerInfoResolver],
exports: [RouterModule]
})
export class AppRoutingModule {}
3 changes: 2 additions & 1 deletion angular/projects/public-lng/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { UrlService } from './services/url.service';
import { DataService } from './services/data.service';
import { FaqComponent } from './faq/faq.component';
import { SearchService, ConfigService, LoggerService } from 'nrpti-angular-components';
import { MapLayerInfoService } from './services/map-layer-info.service';

export function initConfig(configService: ConfigService) {
return () => configService.init();
Expand Down Expand Up @@ -60,7 +61,7 @@ export function initConfig(configService: ConfigService) {
deps: [ConfigService],
multi: true
},
ApiService, UrlService, DataService, SearchService, LoggerService, Utils],
ApiService, UrlService, DataService, SearchService, LoggerService, MapLayerInfoService, Utils],
entryComponents: [],
bootstrap: [AppComponent]
})
Expand Down
Loading

0 comments on commit 7a38ee1

Please sign in to comment.