Commit eba496ad authored by Sven Franck's avatar Sven Franck

app: setup search for updates (still breaks)

parent fe7b7096
...@@ -4636,7 +4636,16 @@ ...@@ -4636,7 +4636,16 @@
// update gadget // update gadget
app.content.set( app.content.set(
{}, {
"portal_type_source": config.state.type,
"portal_type_title": config.state.title,
"property_dict": util.mergeObject({
"dynamic": true,
"map_children": config.state.dyno_dict.map_children
},
config.state.dyno_dict),
"scheme": config.state.scheme
},
{ {
"reference": config.id, "reference": config.id,
"href": config.state.href, "href": config.state.href,
...@@ -4886,7 +4895,7 @@ ...@@ -4886,7 +4895,7 @@
"portal_type_title": config.state.title, "portal_type_title": config.state.title,
"property_dict": util.mergeObject({ "property_dict": util.mergeObject({
"dynamic": true, "dynamic": true,
"map_children": "listItem" "map_children": config.state.dyno_dict.map_children
}, },
config.state.dyno_dict), config.state.dyno_dict),
"scheme": config.state.scheme "scheme": config.state.scheme
...@@ -6238,7 +6247,7 @@ ...@@ -6238,7 +6247,7 @@
} }
// no items, need no show! (default to empty {} if none provided // no items, need no show! (default to empty {} if none provided
if (pointer_results.data.total_rows === 0) { if (pointer_results.data.total_rows === 0) {
if (quirk_dict.property_dict.allow_new) { if (quirk_dict.allow_new) {
pointer_results = {"data": {"total_rows": 1, "rows": [{"doc": {}}]}}; pointer_results = {"data": {"total_rows": 1, "rows": [{"doc": {}}]}};
} else { } else {
quirk_dict.no_show = quirk_dict.no_items || {}; quirk_dict.no_show = quirk_dict.no_items || {};
......
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