Skip to content
Snippets Groups Projects
Commit 63b8715c authored by mathias.chouet's avatar mathias.chouet
Browse files

Comments

parent e2ce663f
No related branches found
No related tags found
1 merge request!40Resolve "Amélioration du système de paramètres liés"
......@@ -4,7 +4,6 @@
<div mat-dialog-content>
<ngparam-input [title]="param.title" ></ngparam-input>
<!-- (change)="onInputChange($event)" -->
</div>
<div mat-dialog-actions>
......
......@@ -219,7 +219,7 @@ export class ParamFieldLineComponent implements OnChanges {
switch (option) {
case "fix":
this.param.valueMode = ParamValueMode.SINGLE;
// @WTF why do we reset the value here ?
// reset the value to avoid "undefined" after exiting CALC or LINK mode
this.param.setValue(this, this.param.paramDefinition.paramValues.singleValue);
break;
......
......@@ -148,7 +148,7 @@ export class FormDefFixedVar {
}
}
// if the current calculated parameter was set to another mode, set a new param
// to calculated mode (there must always be at least one)
// to calculated mode (there must always be exactly one)
if (newCal) {
newCal.valueMode = ParamValueMode.CALCUL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment