From e73df8886366f6fe1e80ec963a7809bf6634591e Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Mon, 4 Jun 2018 10:26:49 +0530 Subject: [PATCH] [hub][minor] remove links #14309 --- erpnext/hub_node/doctype/hub_settings/hub_settings.js | 3 +-- erpnext/public/js/hub/hub_listing.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/hub_node/doctype/hub_settings/hub_settings.js b/erpnext/hub_node/doctype/hub_settings/hub_settings.js index 64d20b87fe..29d870b371 100644 --- a/erpnext/hub_node/doctype/hub_settings/hub_settings.js +++ b/erpnext/hub_node/doctype/hub_settings/hub_settings.js @@ -6,8 +6,7 @@ frappe.ui.form.on("Hub Settings", { })); frm.trigger("enabled"); - frm.add_custom_button(__('View Hub'), - () => frappe.set_route('Hub', 'Item')); + if (frm.doc.enabled) { frm.add_custom_button(__('Sync'), () => frm.call('sync')); diff --git a/erpnext/public/js/hub/hub_listing.js b/erpnext/public/js/hub/hub_listing.js index a979d287e6..e08f97c545 100644 --- a/erpnext/public/js/hub/hub_listing.js +++ b/erpnext/public/js/hub/hub_listing.js @@ -360,7 +360,7 @@ erpnext.hub.ItemListing = class ItemListing extends erpnext.hub.HubListing { setup_defaults() { super.setup_defaults(); this.doctype = 'Hub Item'; - this.page_title = __('Products'); + this.page_title = __('Marketplace'); this.fields = ['name', 'hub_item_code', 'image', 'item_name', 'item_code', 'company_name', 'description', 'country']; this.filters = []; }