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/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index f91c3ba0..062f1a23 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit f91c3ba0fb4c6c70b76ef54203258d454bf7fc18 +Subproject commit 062f1a23c4f55a1d98c185f53f490795c4c89145 diff --git a/explore/src/assets/common-assets b/explore/src/assets/common-assets index d772dbd4..0c6b2ac1 160000 --- a/explore/src/assets/common-assets +++ b/explore/src/assets/common-assets @@ -1 +1 @@ -Subproject commit d772dbd4b2f2d8af9e26d98eed7417f2fbf15c3a +Subproject commit 0c6b2ac12b4796e41bf4cc8de93c157efa866543 diff --git a/explore/src/assets/openaire-theme b/explore/src/assets/openaire-theme index 2882ccde..996b4857 160000 --- a/explore/src/assets/openaire-theme +++ b/explore/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 2882ccde4eb93bd01b4cdb480790cc04b394794d +Subproject commit 996b48573c7cc42a8c50ac447f1fd84c7f0836c4