Commit 1b5c20e5 authored by Rajkumar-D's avatar Rajkumar-D
Browse files

ENA-4441: Fixing errors

parent b4f4d332
Pipeline #278458 failed with stages
in 25 seconds
......@@ -28,13 +28,13 @@
</mat-expansion-panel-header>
<mat-horizontal-stepper #stepper>
<mat-step label="Please select a study">
<!--<mat-step label="Please select a study">
<app-report (selectedRecord)="getSelectedStudy($event,stepper)" [reportType]="reportType"
[embDefaultSearch]="true" [embeded]="true"></app-report>
<div>
<button mat-button matStepperNext [disabled]="!this.selectedStudy">Next</button>
</div>
</mat-step>
</mat-step>-->
<mat-step label="Please select a file format">
<div class="mat-elevation-z8">
<mat-accordion>
......
......@@ -186,9 +186,13 @@
</div>
</div>
<br>
<!--<div style="text-align:Center" *ngIf="stepper.selectedIndex==1">-->
<!--<div style="text-align:Centener" *ngIf="stepper.selectedIndex==1">-->
<div style="text-align:Center">
<button mat-raised-button color="accent" [disabled]="!taxonomySubmissionCheck(source)"
<div *ngIf="!isProductionEnv && taxonomySubmissionCheck(source)" style="padding: 30px;">
Your request is valid, but taxonomy requests are not supported in the test interface.
<br>
</div>
<button mat-raised-button color="accent" [disabled]="!isProductionEnv || !taxonomySubmissionCheck(source)"
(click)=submitTaxonomyRequest(source)>Check and make taxonomy request </button>
<button mat-raised-button style="margin-left: 5px;" routerLink="">Cancel</button>
</div>
......
......@@ -60,6 +60,7 @@ export class TaxonomyManagementComponent implements OnInit {
"description",
"message",
];
isProductionEnv = environment.production;
constructor(
private _webinRestService: WebinRestService,
......@@ -188,6 +189,7 @@ export class TaxonomyManagementComponent implements OnInit {
if (result.event === "Update") {
this.updateTaxa(tableArr, taxonRefObj);
this.hideLoading();
}
if (result.event === "Add") {
......@@ -198,6 +200,7 @@ export class TaxonomyManagementComponent implements OnInit {
blob
);
this.handleServerResponse(observable, false);
this.hideLoading();
}
if (result.event === "Delete") {
......@@ -264,6 +267,7 @@ export class TaxonomyManagementComponent implements OnInit {
}
submitTaxonomyRequest(source) {
this.submissionAccount = JSON.parse(
this._webinAuthService.getSubmissionAccount()
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment