Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
enasequence
webin-portal
Commits
178f6aeb
Commit
178f6aeb
authored
Sep 24, 2020
by
rajkumar
Browse files
Disabling registration of locus_tag_prefix in non prod environment
parent
d0b7118c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
frontend/src/app/study-management/study-management.component.html
.../src/app/study-management/study-management.component.html
+4
-1
frontend/src/app/study-management/study-management.component.ts
...nd/src/app/study-management/study-management.component.ts
+6
-0
No files found.
frontend/src/app/study-management/study-management.component.html
View file @
178f6aeb
...
...
@@ -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>
...
...
frontend/src/app/study-management/study-management.component.ts
View file @
178f6aeb
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment