Skip to content

Commit 05f8206

Browse files
Fran McDadeFran McDade
authored andcommitted
WIP
1 parent 3dde710 commit 05f8206

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

spa/src/app/files/hca-get-data/hca-get-data-downloads/hca-get-data-downloads.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<hca-get-data-panel [loading]="isMatrixSupportedLoading(matrixEnabled)" *ngIf="matrixShow">
1+
<hca-get-data-panel [loading]="isMatrixSupportedLoading(matrixEnabled)" *ngIf="!disableFeature">
22
<h4 class="fontsize-m semi-bold">Create Concatenated Expression Matrix</h4>
33
<ng-container *ngIf="!isMatrixSupportedLoading(matrixEnabled)">
44
<ng-container [ngSwitch]="matrixEnabled">

spa/src/app/files/hca-get-data/hca-get-data-downloads/hca-get-data-downloads.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class HCAGetDataDownloadsComponent {
2525
public portalURL: string;
2626

2727
// Inputs
28+
@Input() disableFeature: boolean;
2829
@Input() matrixEnabled: boolean;
29-
@Input() matrixShow: boolean;
3030
@Input() matrixSpeciesSelectionRequired: boolean;
3131

3232
// Outputs

spa/src/app/files/hca-get-data/hca-get-data.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<ng-container [ngSwitch]="viewState">
1111
<ng-container *ngSwitchDefault>
1212
<div *ngIf="state.matrixSupportedLoaded" [@fadeIn]>
13-
<hca-get-data-downloads [matrixEnabled]="state.matrixSupported"
14-
[matrixShow]="state.matrixShow"
13+
<hca-get-data-downloads [disableFeature]="state.disableFeature"
14+
[matrixEnabled]="state.matrixSupported"
1515
[matrixSpeciesSelectionRequired]="state.matrixSpeciesSelectionRequired"
1616
(downloadSelected)="onDownloadSelected($event, state.fileFacets)"></hca-get-data-downloads>
1717
</div>

spa/src/app/files/hca-get-data/hca-get-data.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ export class HCAGetDataComponent implements OnInit {
304304
.pipe(
305305
map(([selectedEntity, fileFacets, matrixSupported, selectedSearchTerms]) => {
306306

307-
const matrixShow = !this.configService.isV2();
307+
const disableFeature = this.configService.isV2();
308308
const matrixSpeciesSelectionRequired = this.isMatrixSpeciesSelectionRequired(fileFacets);
309309

310310
return {
311311
selectedEntity,
312+
disableFeature,
312313
fileFacets,
313-
matrixShow,
314314
matrixSpeciesSelectionRequired,
315315
matrixSupported,
316316
matrixSupportedLoaded: this.isMatrixSupportedLoaded(matrixSupported),

spa/src/app/files/hca-get-data/hca-get-data.state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import EntitySpec from "../shared/entity-spec";
1212

1313
export interface HCAGetDataState {
1414

15+
disableFeature: boolean;
1516
fileFacets: FileFacet[];
16-
matrixShow: boolean,
1717
matrixSpeciesSelectionRequired: boolean;
1818
matrixSupported: boolean;
1919
matrixSupportedLoaded: boolean;

0 commit comments

Comments
 (0)