Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
enasequence
webin-portal
Commits
988d3333
Commit
988d3333
authored
Sep 24, 2020
by
rajkumar
Browse files
Disabling registration of locus_tag_prefix in non prod environment
parent
178f6aeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
frontend/src/app/study-management/study-management.component.html
.../src/app/study-management/study-management.component.html
+2
-2
frontend/src/app/study-management/study-management.component.ts
...nd/src/app/study-management/study-management.component.ts
+1
-3
No files found.
frontend/src/app/study-management/study-management.component.html
View file @
988d3333
...
...
@@ -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"
>
...
...
frontend/src/app/study-management/study-management.component.ts
View file @
988d3333
...
...
@@ -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
;
}
}
...
...
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