From 2e0b5140e787f0be326515336bccb6030784a1e4 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 28 Jun 2018 03:17:39 +0530 Subject: [PATCH] [hub] add link in modules --- erpnext/config/desktop.py | 8 -------- erpnext/public/js/hub/hub_factory.js | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py index 13f9348ecf..cf9fd19131 100644 --- a/erpnext/config/desktop.py +++ b/erpnext/config/desktop.py @@ -323,14 +323,6 @@ def get_data(): "label": _("Lab Test"), "hidden": 1 }, - { - "module_name": "Hub", - "color": "#009248", - "icon": "/assets/erpnext/images/hub_logo.svg", - "type": "page", - "link": "Hub/Item", - "label": _("Hub") - }, { "module_name": "Data Import", "color": "#FFF168", diff --git a/erpnext/public/js/hub/hub_factory.js b/erpnext/public/js/hub/hub_factory.js index 6451e1d6a9..e5b86d59c7 100644 --- a/erpnext/public/js/hub/hub_factory.js +++ b/erpnext/public/js/hub/hub_factory.js @@ -1,5 +1,14 @@ frappe.provide('erpnext.hub.pages'); +frappe.boot.desktop_icons.unshift({ + force_show: 1, + idx: 0, + label: "Marketplace", + link: "Hub/Item", + module_name: "Marketplace", + type: "module", +}); + frappe.views.HubFactory = frappe.views.Factory.extend({ make(route) { const page_name = frappe.get_route_str();