Commit 988d3333 authored by rajkumar's avatar rajkumar
Browse files

Disabling registration of locus_tag_prefix in non prod environment

parent 178f6aeb
......@@ -130,11 +130,11 @@
<!-- #################### L O C U S - T A G R G I S T R A T I O N #################### -->
<mat-card class="mat-body" *ngIf="!provideGenomeAnnotation">
<mat-card class="mat-body" *ngIf="provideGenomeAnnotation && !isProductionEnv">
<mat-card-subtitle>Locus Tag Prefix Registration</mat-card-subtitle>
<mat-body>Locus Tag Prefix registration is disabled in non production environment.</mat-body>
</mat-card>
<mat-card class="mat-body" *ngIf="provideGenomeAnnotation">
<mat-card class="mat-body" *ngIf="provideGenomeAnnotation && isProductionEnv">
<mat-card-subtitle>Locus Tag Prefix Registration</mat-card-subtitle>
<a (click)="showLocusTagAddPanel()">Add Locus Tag Prefixes<mat-icon>add_circle</mat-icon></a>
<div *ngIf="showLocusTagAdd">
......
......@@ -70,6 +70,7 @@ export class StudyManagementComponent implements OnInit {
showDuplicatePubMedErr = false;
showAttributeAdd = false;
showLocusTagAdd = false;
isProductionEnv=environment.production;
pubMedSearch="";
today=new Date();
......@@ -81,9 +82,6 @@ export class StudyManagementComponent implements OnInit {
constructor(public dialog: MatDialog,private util: UtilService,private xmlUtil: XmlService,private activatedRoute: ActivatedRoute,private _webinRestService:WebinRestService,) {
var date=new Date();
this.maxDate = new Date(date.getFullYear() + 2, date.getMonth(),date.getDate());
if (environment.production) {
this.provideGenomeAnnotation=true;
}
}
......
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