WEB-459 Shares to be Issued Field Allows Zero and Negative Values in Share Product Creation Form (#2846)

This commit is contained in:
Soni Jay
2025-12-02 21:10:52 -06:00
committed by GitHub
parent 9554e34941
commit 83f3a0b0fe
2 changed files with 8 additions and 2 deletions
@@ -27,11 +27,15 @@
matTooltip="{{ 'tooltips.Total number of shares that an orgranization' | translate }}"
formControlName="sharesIssued"
required
min="1"
/>
<mat-error>
<mat-error *ngIf="shareProductTermsForm.get('sharesIssued').hasError('required')">
{{ 'labels.inputs.Shares to be Issued' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
<mat-error *ngIf="shareProductTermsForm.get('sharesIssued').hasError('min')">
{{ 'labels.inputs.Shares to be Issued' | translate }} must be at least <strong>1</strong>
</mat-error>
</mat-form-field>
<mat-form-field class="flex-48">
@@ -62,7 +62,9 @@ export class ShareProductTermsStepComponent implements OnInit {
],
sharesIssued: [
'',
Validators.required
[
Validators.required,
Validators.min(1)]
],
unitPrice: [
'',