[Trunk|Connect]: Contact form: Change modal text.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@55327 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-04-12 14:56:40 +00:00
parent 47c003bb04
commit d95cf337dc
2 changed files with 4 additions and 3 deletions

View File

@ -75,8 +75,8 @@
</div> </div>
<modal-alert #AlertModal (alertOutput)="goToHome($event)"> <modal-alert #AlertModal (alertOutput)="goToHome($event)">
<div class="uk-text-center"> <div class="uk-text-center">
Our team will response to your submission soon.<br> Our team will respond to your submission soon.<br>
Press Ok to redirect to OpenAIRE Connect home page. Press OK to redirect to OpenAIRE Connect home page.
</div> </div>
</modal-alert> </modal-alert>
</div> </div>

View File

@ -67,6 +67,7 @@ export class ContactComponent implements OnInit {
public send() { public send() {
this.isSubmitted = true; this.isSubmitted = true;
if(!this.name.invalid && !this.surname.invalid && !this.sender.invalid && if(!this.name.invalid && !this.surname.invalid && !this.sender.invalid &&
!this.contactForm.email.match('^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$') &&
!this.affiliation.invalid && !this.message.invalid && this.contactForm.recaptcha != '') { !this.affiliation.invalid && !this.message.invalid && this.contactForm.recaptcha != '') {
this.sendMail(this.properties.admins); this.sendMail(this.properties.admins);
} }
@ -108,7 +109,7 @@ export class ContactComponent implements OnInit {
this.modal.alertMessage = false; this.modal.alertMessage = false;
this.modal.cancelButton = false; this.modal.cancelButton = false;
this.modal.okButtonLeft = false; this.modal.okButtonLeft = false;
this.modal.okButtonText = 'Ok'; this.modal.okButtonText = 'OK';
this.modal.open(); this.modal.open();
} }