[master | DONE | CHANGED]: harvester.component.ts & harvester.component.html: Made email field required (not optional) and updated respective messages.
This commit is contained in:
parent
b06f42aa3c
commit
b0f08f6a95
|
@ -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"-->
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue