|
@@ -563,7 +563,7 @@ function runCodeInArgsList(runMode, row, prop, argsList) {
|
|
|
if (noneRunModeArgs.length > 0) {
|
|
|
let tmp = "if (";
|
|
|
noneRunModeArgs.forEach((args) => {
|
|
|
- tmp += `val${args.Action}${args.Threshold}`;
|
|
|
+ tmp += `${val}${args.Action}${args.Threshold}`;
|
|
|
tmp += "||";
|
|
|
});
|
|
|
tmp = tmp.substring(0, tmp.length - 2);
|
|
@@ -571,9 +571,9 @@ function runCodeInArgsList(runMode, row, prop, argsList) {
|
|
|
evalString += tmp;
|
|
|
} else {
|
|
|
runModeArgs.forEach((args) => {
|
|
|
- evalString += `if (runMode==${args.RunMode}) {colorVal=(val${args.Action}${args.Threshold}`;
|
|
|
+ evalString += `if (${runMode}==${args.RunMode} && ${row.available_modes}==true) {colorVal=(${val}${args.Action}${args.Threshold}`;
|
|
|
if (args.Action2.length) {
|
|
|
- evalString += `||val${args.Action2}${args.Threshold2})`;
|
|
|
+ evalString += `||${val}${args.Action2}${args.Threshold2})`;
|
|
|
} else {
|
|
|
evalString += ')';
|
|
|
}
|