Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GEMIMEG Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
GEMIMEG-Tool 2.0
GEMIMEG Frontend
Commits
aa578366
Commit
aa578366
authored
3 weeks ago
by
Samuel Eickelberg
Browse files
Options
Downloads
Patches
Plain Diff
changed uncertaintyList to expandedUncList in quantity
parent
8e8ef7cc
No related branches found
No related tags found
No related merge requests found
Pipeline
#57833
passed
1 week ago
Stage: build
Stage: package
Stage: release
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/dcc/dcc-quantity/dcc-quantity.component.html
+9
-9
9 additions, 9 deletions
...p/components/dcc/dcc-quantity/dcc-quantity.component.html
src/app/components/dcc/dcc-quantity/dcc-quantity.component.ts
+2
-2
2 additions, 2 deletions
...app/components/dcc/dcc-quantity/dcc-quantity.component.ts
with
11 additions
and
11 deletions
src/app/components/dcc/dcc-quantity/dcc-quantity.component.html
+
9
−
9
View file @
aa578366
...
@@ -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=
"newDimensionValue
2
"
>
{{ "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=
"newDimensionValue
2
"
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=
"newDimensionUnit
2
"
>
{{ "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=
"newDimensionUnit
2
"
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?.
uncertainty
List"
class=
"label-container"
>
<div
*ngIf=
"item?.data[0].list?.quantities[index].hybridValues?.
expandedUnc
List"
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.
uncertainty
List; let i = index"
*ngFor=
"let dim of item.data[0].list.quantities[index].hybridValues.
expandedUnc
List; let i = index"
class=
"dcc-row"
class=
"dcc-row"
>
>
<div
class=
"label-container"
>
<div
class=
"label-container"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/dcc/dcc-quantity/dcc-quantity.component.ts
+
2
−
2
View file @
aa578366
...
@@ -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
?.
uncertainty
List
;
const
list
=
item
.
data
?.[
0
]?.
list
?.
quantities
?.[
quantityIndex
]?.
hybridValues
?.
expandedUnc
List
;
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
?.
uncertainty
List
;
const
list
=
item
.
data
?.[
0
]?.
list
?.
quantities
?.[
quantityIndex
]?.
hybridValues
?.
expandedUnc
List
;
if
(
list
&&
list
.
length
>
entryIndex
)
{
if
(
list
&&
list
.
length
>
entryIndex
)
{
list
.
splice
(
entryIndex
,
1
);
list
.
splice
(
entryIndex
,
1
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment