[hub] Add 'See All' for Category items
- Also remove special `cursor: pointer` style
- Set it for all elements having a data-route
diff --git a/erpnext/public/js/hub/helpers.js b/erpnext/public/js/hub/helpers.js
index 85143b7..7c4c919 100644
--- a/erpnext/public/js/hub/helpers.js
+++ b/erpnext/public/js/hub/helpers.js
@@ -5,11 +5,12 @@
</div>`;
}
-function get_item_card_container_html(items, title='', get_item_html = get_item_card_html) {
+function get_item_card_container_html(items, title='', get_item_html = get_item_card_html, action='') {
const items_html = (items || []).map(item => get_item_html(item)).join('');
const title_html = title
- ? `<div class="col-sm-12 margin-bottom">
+ ? `<div class="hub-card-container-header col-sm-12 margin-bottom flex">
<h4>${title}</h4>
+ ${action}
</div>`
: '';