Commit bc1c853f authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Eteri

erp5_hal_json_style: return icon in order to be possible to define action's icon

parent 504ce4b2
...@@ -790,6 +790,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None, ...@@ -790,6 +790,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
erp5_action_list.append({ erp5_action_list.append({
'href': '%s' % view_action['url'], 'href': '%s' % view_action['url'],
'name': view_action['id'], 'name': view_action['id'],
'icon': view_action['icon'],
'title': Base_translateString(view_action['title']) 'title': Base_translateString(view_action['title'])
}) })
# Try to embed the form in the result # Try to embed the form in the result
......
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