Commit 178f6aeb authored by rajkumar's avatar rajkumar
Browse files

Disabling registration of locus_tag_prefix in non prod environment

parent d0b7118c
......@@ -130,7 +130,10 @@
<!-- #################### 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-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-subtitle>Locus Tag Prefix Registration</mat-card-subtitle>
<a (click)="showLocusTagAddPanel()">Add Locus Tag Prefixes<mat-icon>add_circle</mat-icon></a>
......
......@@ -13,6 +13,8 @@ import { ActivatedRoute } from '@angular/router';
import { HttpErrorResponse } from '@angular/common/http';
import { PopupMessageComponent } from '../popup-message/popup-message.component';
import { MatDialog } from '@angular/material/dialog';
import { environment } from '../../environments/environment';
const moment = _moment;
export const CUSTOM_FORMATS = {
......@@ -79,6 +81,10 @@ 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