Skip to content
Snippets Groups Projects
Commit aa578366 authored by Samuel Eickelberg's avatar Samuel Eickelberg
Browse files

changed uncertaintyList to expandedUncList in quantity

parent 8e8ef7cc
No related branches found
No related tags found
No related merge requests found
Pipeline #57833 passed
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
</mat-radio-group> </mat-radio-group>
</div> </div>
<div *ngFor="let refType of quantity.refTypes; let i = index; trackBy: trackByIndex" class="dcc-row"> <div *ngFor="let refType of quantity.refTypes; let i = index; trackBy: trackByIndex" class="dcc-row">
<div class="label-container"><label for="refType">RefType</label></div> <div class="label-container"><label for="refType_{{ i }}">RefType</label></div>
<mat-form-field appearance="fill" class="form-field-right-0px"> <mat-form-field appearance="fill" class="form-field-right-0px">
<input <input
(input)="onInputChange($event, i, quantity.refTypes)" (input)="onInputChange($event, i, quantity.refTypes)"
[value]="refType" [value]="refType"
id="refType{{ i }}" id="refType_{{ i }}"
matInput matInput
name="refType{{ i }}" name="refType_{{ i }}"
/> />
</mat-form-field> </mat-form-field>
<div class="button-container-right-0px"> <div class="button-container-right-0px">
...@@ -187,15 +187,15 @@ ...@@ -187,15 +187,15 @@
<label class="index-label">({{ "dcc.newEntry" | translate }})</label> <label class="index-label">({{ "dcc.newEntry" | translate }})</label>
</div> </div>
<div class="form-field-container"> <div class="form-field-container">
<label for="newDimensionValue">{{ "dcc.value" | translate }}</label> <label for="newDimensionValue2">{{ "dcc.value" | translate }}</label>
<mat-form-field appearance="fill" class="form-field"> <mat-form-field appearance="fill" class="form-field">
<input [(ngModel)]="newValue" id="newDimensionValue" matInput /> <input [(ngModel)]="newValue" id="newDimensionValue2" matInput />
</mat-form-field> </mat-form-field>
</div> </div>
<div class="form-field-container"> <div class="form-field-container">
<label for="newDimensionUnit">{{ "dcc.unit" | translate }}</label> <label for="newDimensionUnit2">{{ "dcc.unit" | translate }}</label>
<mat-form-field appearance="fill" class="form-field"> <mat-form-field appearance="fill" class="form-field">
<input [(ngModel)]="newUnit" id="newDimensionUnit" matInput /> <input [(ngModel)]="newUnit" id="newDimensionUnit2" matInput />
</mat-form-field> </mat-form-field>
</div> </div>
<button <button
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
</div> </div>
</div> </div>
<div *ngIf="item?.data?.length > 0" class="dcc-row"> <div *ngIf="item?.data?.length > 0" class="dcc-row">
<div *ngIf="item?.data[0].list?.quantities[index].hybridValues?.uncertaintyList" class="label-container"> <div *ngIf="item?.data[0].list?.quantities[index].hybridValues?.expandedUncList" class="label-container">
<button (click)="toggleExpandedUncertainty(index)" mat-icon-button> <button (click)="toggleExpandedUncertainty(index)" mat-icon-button>
<mat-icon>{{ showExpandedUncertainty[index] ? "remove" : "add" }}</mat-icon> <mat-icon>{{ showExpandedUncertainty[index] ? "remove" : "add" }}</mat-icon>
</button> </button>
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</div> </div>
<div *ngIf="showExpandedUncertainty[index]"> <div *ngIf="showExpandedUncertainty[index]">
<div <div
*ngFor="let dim of item.data[0].list.quantities[index].hybridValues.uncertaintyList; let i = index" *ngFor="let dim of item.data[0].list.quantities[index].hybridValues.expandedUncList; let i = index"
class="dcc-row" class="dcc-row"
> >
<div class="label-container"> <div class="label-container">
......
...@@ -136,7 +136,7 @@ export class DccQuantityComponent implements OnInit { ...@@ -136,7 +136,7 @@ export class DccQuantityComponent implements OnInit {
const entry = this.newUncertaintyEntry[quantityIndex]; const entry = this.newUncertaintyEntry[quantityIndex];
if (entry.uncertainty || entry.coverageFactor || entry.coverageProbability) { if (entry.uncertainty || entry.coverageFactor || entry.coverageProbability) {
const list = item.data?.[0]?.list?.quantities?.[quantityIndex]?.hybridValues?.uncertaintyList; const list = item.data?.[0]?.list?.quantities?.[quantityIndex]?.hybridValues?.expandedUncList;
if (list) { if (list) {
list.push({ list.push({
uncertainty: entry.uncertainty || "", uncertainty: entry.uncertainty || "",
...@@ -151,7 +151,7 @@ export class DccQuantityComponent implements OnInit { ...@@ -151,7 +151,7 @@ export class DccQuantityComponent implements OnInit {
} }
removeUncertaintyEntry(item: any, quantityIndex: number, entryIndex: number): void { removeUncertaintyEntry(item: any, quantityIndex: number, entryIndex: number): void {
const list = item.data?.[0]?.list?.quantities?.[quantityIndex]?.hybridValues?.uncertaintyList; const list = item.data?.[0]?.list?.quantities?.[quantityIndex]?.hybridValues?.expandedUncList;
if (list && list.length > entryIndex) { if (list && list.length > entryIndex) {
list.splice(entryIndex, 1); list.splice(entryIndex, 1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment