Skip to content
Snippets Groups Projects
Commit 233e1040 authored by francois.grand's avatar francois.grand
Browse files

#48 ParamFieldLineComponent : modif pour retrouver la valeur 'single' du...

 #48 ParamFieldLineComponent : modif pour retrouver la valeur 'single' du paramètre quand on repasse en mode fixé (généralisation du commit 9af02e01)
parent f1ca551c
No related branches found
No related tags found
1 merge request!22Resolve "Lier des paramètres ou des résultats entre les calculettes"
......@@ -220,13 +220,11 @@ export class ParamFieldLineComponent implements OnChanges {
private onRadioClick(option: string) {
const oldValue = this._param.valueMode;
//console.log(`param ${this._param.valueMode} mode ${ParamValueMode[this._param.valueMode]}`);
switch (option) {
case "fix":
const oldValueMode = this._param.valueMode;
this._param.valueMode = ParamValueMode.SINGLE;
if (oldValueMode === ParamValueMode.LINK)
this._param.setValue(this, this._param.paramDefinition.paramValues.singleValue);
this._param.setValue(this, this._param.paramDefinition.paramValues.singleValue);
break;
case "var":
......@@ -241,7 +239,6 @@ export class ParamFieldLineComponent implements OnChanges {
this._param.valueMode = ParamValueMode.LINK;
break;
}
//console.log(`param ${this._param.valueMode} mode ${ParamValueMode[this._param.valueMode]}`);
this.onRadio.emit({
"param": this._param,
......
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