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
8083a3a5
Commit
8083a3a5
authored
May 06, 2022
by
Rajkumar-D
Browse files
Taxon Reg: Adding first proposed name to email subject
parent
52e1c95d
Pipeline
#278474
failed with stages
in 50 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/app/taxonomy-management/taxonomy-management.component.ts
src/app/taxonomy-management/taxonomy-management.component.ts
+4
-1
No files found.
src/app/taxonomy-management/taxonomy-management.component.ts
View file @
8083a3a5
...
...
@@ -184,6 +184,7 @@ export class TaxonomyManagementComponent implements OnInit {
if
(
result
.
event
!=
"
close
"
)
{
this
.
showLoading
();
let
taxonRefObj
=
result
.
data
;
let
tableArr
=
source
===
"
Form
"
?
this
.
validFormArray
:
this
.
validSpreadsheetArray
;
...
...
@@ -268,6 +269,7 @@ export class TaxonomyManagementComponent implements OnInit {
submitTaxonomyRequest
(
source
)
{
const
proposedNameRegexp
=
"
(Proposed name: )(.*)
"
;
this
.
submissionAccount
=
JSON
.
parse
(
this
.
_webinAuthService
.
getSubmissionAccount
()
);
...
...
@@ -275,11 +277,12 @@ export class TaxonomyManagementComponent implements OnInit {
mail
[
"
from
"
]
=
this
.
submissionAccount
[
"
submissionContacts
"
]
.
filter
((
contact
)
=>
contact
.
mainContact
)
.
map
((
contact
)
=>
contact
.
emailAddress
)[
0
];
mail
[
"
subject
"
]
=
"
Taxonomy Consultation
"
;
mail
[
"
to
"
]
=
environment
.
taxonomySubmissionEmail
;
this
.
constructTaxonContentAndSendMail
(
function
(
taxonContent
,
thisObj
)
{
mail
[
"
content
"
]
=
taxonContent
;
mail
[
"
subject
"
]
=
"
Taxonomy Consultation -
"
+
taxonContent
.
match
(
proposedNameRegexp
)[
2
];
console
.
log
(
taxonContent
);
const
observable
:
Observable
<
string
>
=
thisObj
.
_webinRestService
.
sendTaxonEmail
(
mail
...
...
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