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