Commit e28ae98e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fixup boolean on parameter editor

parent cf01f301
Pipeline #22504 passed with stage
in 0 seconds
...@@ -379,8 +379,10 @@ ...@@ -379,8 +379,10 @@
json_dict[input.name] = parseFloat(input.value); json_dict[input.name] = parseFloat(input.value);
} }
} else if (input.getAttribute("data-format") === "boolean") { } else if (input.getAttribute("data-format") === "boolean") {
if (input.value === "true" || input.value === "false") { if (input.value === "true") {
json_dict[input.name] = Boolean(input.value); json_dict[input.name] = Boolean(input.value);
} else if (input.value === "false") {
json_dict[input.name] = false;
} else { } else {
json_dict[input.name] = input.value; json_dict[input.name] = input.value;
} }
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1000.18290.33085.1843</string> </value> <value> <string>1000.42210.9826.36164</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1652729515.46</float> <float>1656947623.15</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment