mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 23:07:41 +00:00
[hub] add hub settings access regardless
This commit is contained in:
@@ -6,9 +6,9 @@ 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(__('View Hub'),
|
||||
() => frappe.set_route('Hub', 'Item'));
|
||||
frm.add_custom_button(__('Sync'),
|
||||
() => frm.call('sync'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user