Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ <h4 class="mat-h4 flex-98">

<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="lockinPeriodFrequency" />
<input type="number" matInput formControlName="lockinPeriodFrequency" min="1" step="1" required />
<mat-error *ngIf="shareProductSettingsForm.get('lockinPeriodFrequency').hasError('required')">
Frequency is <strong>required</strong>
</mat-error>
<mat-error *ngIf="shareProductSettingsForm.get('lockinPeriodFrequency').hasError('min')">
Frequency must be greater than zero
</mat-error>
</mat-form-field>

<mat-form-field class="flex-48">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ export class ShareProductSettingsStepComponent implements OnInit {
maximumShares: [''],
minimumActivePeriodForDividends: [''],
minimumactiveperiodFrequencyType: [''],
lockinPeriodFrequency: [''],
lockinPeriodFrequency: [
'',
[
Validators.required,
Validators.min(1)
]
],
lockinPeriodFrequencyType: [''],
allowDividendCalculationForInactiveClients: [false]
});
Expand Down
Loading