@@ -18,15 +18,16 @@ import { Config } from "./config/config.model";
1818import { selectConfigConfig } from "./config/_ngrx/config.selectors" ;
1919import { SetViewStateAction } from "./files/_ngrx/file-facet-list/set-view-state.action" ;
2020import { EntityName } from "./files/shared/entity-name.model" ;
21+ import { FileFacetName } from "./files/shared/file-facet-name.model" ;
2122import { QueryStringFacet } from "./files/shared/query-string-facet.model" ;
23+ import { GenusSpecies } from "./files/shared/genus-species.model" ;
24+ import { FetchReleasesRequestAction } from "./files/_ngrx/release/fetch-releases-request.action" ;
2225import { AppState } from "./_ngrx/app.state" ;
2326import { DeviceDetectorService } from "ngx-device-detector" ;
2427import { HealthRequestAction } from "./system/_ngrx/health/health-request.action" ;
2528import { selectHealth , selectIndex } from "./system/_ngrx/system.selectors" ;
2629import { IndexRequestAction } from "./system/_ngrx/index/index-request.action" ;
2730import { SystemState } from "./system.state" ;
28- import { FileFacetName } from "./files/shared/file-facet-name.model" ;
29- import { GenusSpecies } from "./files/shared/genus-species.model" ;
3031
3132@Component ( {
3233 selector : "app-root" ,
@@ -123,6 +124,14 @@ export class AppComponent implements OnInit, OnDestroy {
123124 return ! ! params [ "filter" ] ;
124125 }
125126
127+ /**
128+ * Load release data from local JSON files.
129+ */
130+ private loadReleaseData ( ) : void {
131+
132+ this . store . dispatch ( new FetchReleasesRequestAction ( ) ) ;
133+ }
134+
126135 /**
127136 * Determine the current selected tab.
128137 *
@@ -258,6 +267,7 @@ export class AppComponent implements OnInit, OnDestroy {
258267
259268 this . setAppStateFromURL ( ) ;
260269 this . systemCheck ( ) ;
270+ this . loadReleaseData ( ) ;
261271
262272 this . config$ = this . store . pipe (
263273 select ( selectConfigConfig ) ,
0 commit comments