WEB-459 Shares to be Issued Field Allows Zero and Negative Values in Share Product Creation Form (#2846)
This commit is contained in:
+5
-1
@@ -27,11 +27,15 @@
|
|||||||
matTooltip="{{ 'tooltips.Total number of shares that an orgranization' | translate }}"
|
matTooltip="{{ 'tooltips.Total number of shares that an orgranization' | translate }}"
|
||||||
formControlName="sharesIssued"
|
formControlName="sharesIssued"
|
||||||
required
|
required
|
||||||
|
min="1"
|
||||||
/>
|
/>
|
||||||
<mat-error>
|
<mat-error *ngIf="shareProductTermsForm.get('sharesIssued').hasError('required')">
|
||||||
{{ 'labels.inputs.Shares to be Issued' | translate }} {{ 'labels.commons.is' | translate }}
|
{{ 'labels.inputs.Shares to be Issued' | translate }} {{ 'labels.commons.is' | translate }}
|
||||||
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
||||||
</mat-error>
|
</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>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
|
|||||||
+3
-1
@@ -62,7 +62,9 @@ export class ShareProductTermsStepComponent implements OnInit {
|
|||||||
],
|
],
|
||||||
sharesIssued: [
|
sharesIssued: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
[
|
||||||
|
Validators.required,
|
||||||
|
Validators.min(1)]
|
||||||
],
|
],
|
||||||
unitPrice: [
|
unitPrice: [
|
||||||
'',
|
'',
|
||||||
|
|||||||
Reference in New Issue
Block a user