[master | DONE | CHANGED]: harvester.component.ts & harvester.component.html: Made email field required (not optional) and updated respective messages.

This commit is contained in:
Konstantina Galouni 2023-11-21 15:28:26 +02:00
parent b06f42aa3c
commit b0f08f6a95
2 changed files with 6 additions and 5 deletions

View File

@ -125,13 +125,14 @@
<!-- <hr class="uk-margin-xlarge-top uk-margin-xlarge-bottom">-->
<div *ngIf="!modalShowNext" class="uk-flex uk-flex-column uk-flex-middle">
<div>Want feedback on the harvest status?</div>
<div>Please provide us with your email address and click the <i class="uk-text-bold">harvest</i> button.</div>
<div class="uk-margin-small-top">Otherwise, simply click the <i class="uk-text-bold">harvest</i> button to continue.</div>
<!-- <div>Want feedback on the harvest status?</div>-->
<div>Please provide us with your email address and click on the <i class="uk-text-bold">harvest</i> button.
You will soon receive an email with the harvest status.</div>
<!-- <div class="uk-margin-small-top">Otherwise, simply click the <i class="uk-text-bold">harvest</i> button to continue.</div>-->
<div input class="uk-width-2-3 uk-margin-medium-top"
[formInput]="form.get('email')" placeholder="E-mail">
<span note>(Optional)</span>
<!-- <span note>(Optional)</span>-->
</div>
<div>
<!-- <re-captcha (resolved)="handleRecaptcha($event)" [siteKey]="properties.reCaptchaSiteKey"-->

View File

@ -39,7 +39,7 @@ export class HarvesterComponent {
ngOnInit() {
this.form = this.fb.group({
email: this.fb.control('', Validators.email),
email: this.fb.control('', [Validators.email, Validators.required]),
// recaptcha: this.fb.control('', Validators.required),
recordsNum: this.fb.control(1000, Validators.required),
format: this.fb.control(null, Validators.required)