Commit 07eecdde authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fixup compute node view

  Fixup minor js implementation error
parent 988b3fd0
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
.push(function (result) { .push(function (result) {
var i, value, value_jio_key, len = result.data.total_rows; var i, value, value_jio_key, len = result.data.total_rows;
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
if (1 || (result.data.rows[i].value.getAccessStatus)) { if (result.data.rows[i].value.getAccessStatus) {
value = result.data.rows[i].value.getAccessStatus; value = result.data.rows[i].value.getAccessStatus;
value_jio_key = result.data.rows[i].id; value_jio_key = result.data.rows[i].id;
result.data.rows[i].value.getAccessStatus = { result.data.rows[i].value.getAccessStatus = {
...@@ -192,15 +192,14 @@ ...@@ -192,15 +192,14 @@
if (!supported_allocation_scope_list.includes( if (!supported_allocation_scope_list.includes(
gadget.state.doc.allocation_scope gadget.state.doc.allocation_scope
) && hidden_allocation_scope.keys().includes( ) && (hidden_allocation_scope.hasOwnProperty(gadget.state.doc.allocation_scope))) {
gadget.state.doc.allocation_scope
)) {
allocation_scope_list.push( allocation_scope_list.push(
[hidden_allocation_scope[gadget.state.doc.allocation_scope], [hidden_allocation_scope[gadget.state.doc.allocation_scope],
gadget.state.doc.allocation_scope gadget.state.doc.allocation_scope
] ]
); );
} }
return form_gadget.render({ return form_gadget.render({
erp5_document: { erp5_document: {
"_embedded": {"_view": { "_embedded": {"_view": {
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1010.39674.54022.30344</string> </value> <value> <string>1010.39762.20916.26709</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1692648139.06</float> <float>1700505669.56</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