Commit 2722400c authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: allow displaying searchable form_list on the access page

Using the display router command allows to drop the user search term
when moving from one access page to another.
parent 906761ed
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
} }
return this.changeState({ return this.changeState({
display_step: options[URL_DISPLAY_PARAMETER] || undefined, display_step: options[URL_DISPLAY_PARAMETER] || undefined,
page: options.page,
action_list: JSON.stringify(action_list), action_list: JSON.stringify(action_list),
// Force display in any case to refresh the menus // Force display in any case to refresh the menus
render_timestamp: new Date().getTime(), render_timestamp: new Date().getTime(),
...@@ -128,9 +129,10 @@ ...@@ -128,9 +129,10 @@
i; i;
for (i = 0; i < action_list.length; i += 1) { for (i = 0; i < action_list.length; i += 1) {
url_for_list.push({ url_for_list.push({
command: 'change', command: 'display',
options: { options: {
view: i view: i,
page: gadget.state.page
} }
}); });
} }
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <unicode>zope</unicode> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>989.58958.48545.8448</string> </value> <value> <string>1019.35820.17369.64529</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1612866299.0</float> <float>1727282760.47</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