|
|
|
@ -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) {
|
|
|
|
|