Skip to content

Commit

Permalink
SPT-14582: update playbook interger input
Browse files Browse the repository at this point in the history
  • Loading branch information
Melizzo committed Dec 12, 2022
1 parent 00b3e07 commit 24172b9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,18 @@
</ng-container>

<!-- CONSTRAINS -->
<div class="constrain-row" *ngIf="editableProperty.type === 'number' || editableProperty.type === 'integer'">
<div class="constrain-row" *ngIf="editableProperty.type === 'number'">
<ngx-input type="number" [(ngModel)]="editableProperty.minimum" [label]="'MINIMUM'"></ngx-input>

<ngx-input type="number" [(ngModel)]="editableProperty.maximum" [label]="'MAXIMUM'"></ngx-input>
</div>

<div class="constrain-row" *ngIf="editableProperty.type === 'integer'">
<ngx-input type="number" [(ngModel)]="editableProperty.minimum" [label]="'MINIMUM'" [pattern]="'^[0-9]*$'"></ngx-input>

<ngx-input type="number" [(ngModel)]="editableProperty.maximum" [label]="'MAXIMUM'" [pattern]="'^[1-9]*$'"></ngx-input>
</div>

<div class="constrain-row" *ngIf="editableProperty.type === 'string'">
<ngx-input type="number" [(ngModel)]="editableProperty.minLength" [label]="'MINIMUM LENGTH'"></ngx-input>

Expand Down

0 comments on commit 24172b9

Please sign in to comment.