Commit 6c4f7600 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: handle non editable parallellistfields

parent 4fbd2845
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
state_dict = { state_dict = {
field_list: field_json.subfield_list, field_list: field_json.subfield_list,
previous_field_length: this.state.field_list.length, previous_field_length: this.state.field_list.length,
editable: field_json.editable,
// Force calling subfield render // Force calling subfield render
// as user may have modified the input value // as user may have modified the input value
render_timestamp: new Date().getTime() render_timestamp: new Date().getTime()
...@@ -59,8 +60,8 @@ ...@@ -59,8 +60,8 @@
var sub_state; var sub_state;
promise_list = []; promise_list = [];
for (i = 0; i < gadget.state.field_list.length; i += 1) { for (i = 0; i < gadget.state.field_list.length; i += 1) {
sub_state = gadget.state.field_list[i]; sub_state = JSON.parse(JSON.stringify(gadget.state.field_list[i]));
sub_state.editable = gadget.state.editable;
promise_list.push(gadget_list[i].render({ promise_list.push(gadget_list[i].render({
field_json: sub_state, field_json: sub_state,
field_type: sub_state.field_type field_type: sub_state.field_type
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>989.18529.59782.32597</string> </value> <value> <string>989.18530.35220.41369</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1610440472.18</float> <float>1610440711.42</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