Commit 06c79fa4 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: Do not store state for module subdocument, to not pollute the IDB size

parent c569ae9e
...@@ -436,7 +436,9 @@ ...@@ -436,7 +436,9 @@
// Only keep state for the default view // Only keep state for the default view
// otherwise, user will never be able to reset it with the filter panel // otherwise, user will never be able to reset it with the filter panel
if (storage_key && ((options.view === undefined) || (options.view === 'view'))) { // Do not store state for module subdocument, to not pollute the IDB size
if ((storage_key && (storage_key.indexOf('/') === -1)) &&
((options.view === undefined) || (options.view === 'view'))) {
queue = gadget.props.jio_state_gadget.put(storage_key, dropStickyParameterEntry(options)); queue = gadget.props.jio_state_gadget.put(storage_key, dropStickyParameterEntry(options));
} else { } else {
queue = new RSVP.Queue(); queue = new RSVP.Queue();
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.1860.29146.64136</string> </value> <value> <string>981.4330.60289.19831</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1578501476.12</float> <float>1578649655.03</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