diff --git a/explore/src/app/contact/contact.component.html b/explore/src/app/contact/contact.component.html index 4daf7db9..0eba329c 100644 --- a/explore/src/app/contact/contact.component.html +++ b/explore/src/app/contact/contact.component.html @@ -7,7 +7,7 @@
-

Contact us to
learn more. diff --git a/explore/src/app/contact/contact.component.ts b/explore/src/app/contact/contact.component.ts index 024e9f01..0549f948 100644 --- a/explore/src/app/contact/contact.component.ts +++ b/explore/src/app/contact/contact.component.ts @@ -14,6 +14,7 @@ import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.compo import {Subscriber} from "rxjs"; import {properties} from "../../environments/environment"; import {NotificationHandler} from "../openaireLibrary/utils/notification-handler"; +import {ContactUsComponent} from "../openaireLibrary/contact-us/contact-us.component"; @Component({ selector: 'contact', @@ -33,7 +34,8 @@ export class ContactComponent implements OnInit { public contactForm: FormGroup; @ViewChild('modal') modal; private subscriptions = []; - + @ViewChild('contactUs') contactUsComponent : ContactUsComponent; + ngOnDestroy() { this.subscriptions.forEach(subscription => { if (subscription instanceof Subscriber) { @@ -94,6 +96,9 @@ export class ContactComponent implements OnInit { message: this.fb.control('', Validators.required), recaptcha: this.fb.control('', Validators.required), }); + if(this.contactUsComponent) { + this.contactUsComponent.resetRecaptcha(); + } } private sendMail(admins: any) { diff --git a/services/utils-service/properties.file b/services/utils-service/properties.file index ed2c1d79..4f43d8fc 100644 --- a/services/utils-service/properties.file +++ b/services/utils-service/properties.file @@ -1,4 +1,4 @@ -userInfoUrl = http://mpagasas.di.uoa.gr:8080/login-service/userInfo +userInfoUrl = http://mpagasas.di.uoa.gr:19080/login-service/userInfo ssl = false localPath = true # photo size in KB