@@ -14,21 +14,20 @@ import { combineLatest, Observable, Subject } from "rxjs";
1414import { map } from "rxjs/operators" ;
1515
1616// App dependencies
17+ import { ConfigService } from "../../config/config.service" ;
18+ import { DownloadViewState } from "./download-view-state.model" ;
19+ import { FileFacet } from "../facet/file-facet/file-facet.model" ;
20+ import { FileFacetName } from "../facet/file-facet/file-facet-name.model" ;
21+ import { HCAGetDataState } from "./hca-get-data.state" ;
1722import { AppState } from "../../_ngrx/app.state" ;
18- import {
19- selectSelectedEntity
20- } from "../_ngrx/file.selectors" ;
2123import { ClearIsMatrixSupportedAction } from "../_ngrx/facet/clear-is-matrix-supported.action" ;
24+ import { selectFacetFileFacets , selectMatrixSupported } from "../_ngrx/facet/facet.selectors" ;
2225import { FetchIsMatrixSupportedRequestAction } from "../_ngrx/facet/fetch-is-matrix-supported-request.action" ;
26+ import { selectSelectedEntity } from "../_ngrx/file.selectors" ;
27+ import { selectSelectedSearchTerms } from "../_ngrx/search/search.selectors" ;
2328import { EntitySelectAction } from "../_ngrx/table/table.actions" ;
2429import EntitySpec from "../shared/entity-spec" ;
25- import { FileFacet } from "../facet/file-facet/file-facet.model" ;
26- import { DownloadViewState } from "./download-view-state.model" ;
27- import { FileFacetName } from "../facet/file-facet/file-facet-name.model" ;
2830import { Term } from "../shared/term.model" ;
29- import { HCAGetDataState } from "./hca-get-data.state" ;
30- import { selectFacetFileFacets , selectMatrixSupported } from "../_ngrx/facet/facet.selectors" ;
31- import { selectSelectedSearchTerms } from "../_ngrx/search/search.selectors" ;
3231
3332@Component ( {
3433 selector : "hca-get-data" ,
@@ -55,10 +54,12 @@ export class HCAGetDataComponent implements OnInit {
5554 private viewState = DownloadViewState . NONE ;
5655
5756 /**
57+ * @param {ConfigService } configService
5858 * @param {Router } router
5959 * @param {Store<AppState> } store
6060 */
61- public constructor ( private router : Router ,
61+ public constructor ( private configService : ConfigService ,
62+ private router : Router ,
6263 private store : Store < AppState > ) {
6364 }
6465
@@ -302,11 +303,13 @@ export class HCAGetDataComponent implements OnInit {
302303 )
303304 . pipe (
304305 map ( ( [ selectedEntity , fileFacets , matrixSupported , selectedSearchTerms ] ) => {
305-
306+
307+ const disableFeature = this . configService . isV2 ( ) ;
306308 const matrixSpeciesSelectionRequired = this . isMatrixSpeciesSelectionRequired ( fileFacets ) ;
307309
308310 return {
309311 selectedEntity,
312+ disableFeature,
310313 fileFacets,
311314 matrixSpeciesSelectionRequired,
312315 matrixSupported,
0 commit comments