[Connect | Trunk]: Contact form fix a bug while email has not been sent.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58330 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
6b47d54ffa
commit
68bf769480
|
@ -104,10 +104,14 @@ export class ContactComponent implements OnInit {
|
|||
Composer.composeEmailForNewCommunity(this.contactForm.value, admins),
|
||||
this.contactForm.value.recaptcha).subscribe(
|
||||
res => {
|
||||
this.showLoading = false;
|
||||
if (res) {
|
||||
this.reset();
|
||||
this.modalOpen();
|
||||
} else {
|
||||
this.showLoading = false;
|
||||
this.errorMessage = 'Email sent failed! Please try again.';
|
||||
this.contactForm.get('recaptcha').setValue('');
|
||||
}
|
||||
},
|
||||
error => {
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
||||
|
||||
"adminToolsAPIURL" :"https://beta.services.openaire.eu/uoa-admin-tools",
|
||||
"adminToolsAPIURL" :"http://duffy.di.uoa.gr:8080/uoa-admin-tools/",
|
||||
|
||||
"adminToolsCommunity" :"connect",
|
||||
"datasourcesAPI": "https://beta.services.openaire.eu/openaire/ds/search/",
|
||||
|
|
Loading…
Reference in New Issue