Commit 12e6043f authored by Diogo Santos's avatar Diogo Santos
Browse files

Ranges now showing for integer characteristics in Service Order checkout if at...

Ranges now showing for integer characteristics in Service Order checkout if at least one of valueFrom and valueTo are not null
parent 1404e420
Loading
Loading
Loading
Loading
Loading
+17 −5
Original line number Diff line number Diff line
@@ -68,7 +68,13 @@
        
                                    <ng-container *ngSwitchDefault>
                                        <mat-form-field>
                                            <mat-label>{{charForm.get('valueType').value}}</mat-label>
                                            <mat-label>
                                                {{charForm.get('valueType').value}}
                                                <ng-container *ngIf="charForm.get('valueType').value === 'INTEGER' &&
                                                    (charForm.get('value').value.valueFrom != null || charForm.get('value').value.valueTo != null)">
                                                    ({{charForm.get('value').value.valueFrom != null ? charForm.get('value').value.valueFrom : '-∞'}}, {{charForm.get('value').value.valueTo != null ? charForm.get('value').value.valueTo : '∞'}})
                                                </ng-container>
                                            </mat-label>
                                            <input matInput [(ngModel)]="charForm.get('value').value[0].value.value"
                                                [ngModelOptions]="{standalone: true}">
                                        </mat-form-field>
@@ -76,7 +82,7 @@
        
                                    <ng-template #iterables>
                                        <mat-form-field>
                                            <mat-label>{{charForm.get('value').value[0].valueType}}</mat-label>
                                            <mat-label>{{charForm.get('valueType').value}}</mat-label>
                                            <mat-select formControlName="value" multiple>
                                                <mat-option
                                                    *ngFor="let charValue of configurableSpecChar[i].serviceSpecCharacteristicValue"
@@ -88,7 +94,7 @@

                                    <ng-template #enumerable>
                                        <mat-form-field >
                                            <mat-label>{{charForm.get('value').value[0].valueType}}</mat-label>
                                            <mat-label>{{charForm.get('valueType').value}}</mat-label>
                                            <mat-select [(ngModel)]="charForm.get('value').value[0]"
                                                [ngModelOptions]="{standalone: true}">
                                                <mat-option
@@ -111,7 +117,13 @@
                                                                [ngModelOptions]="{standalone: true}">
                                                        </mat-form-field >
                                                        <mat-form-field class="col-sm-6 col-md-12 col-xl-6">
                                                            <mat-label>{{charValue.valueType}}</mat-label>
                                                            <mat-label>
                                                                {{charValue.valueType}}
                                                                <ng-container *ngIf="charValue.valueType === 'INTEGER' &&
                                                                    (charValue.valueFrom != null || charValue.valueTo != null)">
                                                                    ({{charValue.valueFrom != null ? charValue.valueFrom : '-∞'}}, {{charValue.valueTo != null ? charValue.valueTo : '∞'}})
                                                                </ng-container>
                                                            </mat-label>
                                                            <input matInput [(ngModel)]="charValue.value.value"
                                                                [ngModelOptions]="{standalone: true}">
                                                        </mat-form-field>