[hub] add hub settings access regardless
This commit is contained in:
parent
420c79041e
commit
4b7dcfad54
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user