[hub] add hub settings access regardless

This commit is contained in:
Prateeksha Singh
2018-04-05 14:50:42 +05:30
parent 420c79041e
commit 4b7dcfad54

View File

@@ -6,9 +6,9 @@ frappe.ui.form.on("Hub Settings", {
})); }));
frm.trigger("enabled"); frm.trigger("enabled");
frm.add_custom_button(__('View Hub'),
() => frappe.set_route('Hub', 'Item'));
if (frm.doc.enabled) { if (frm.doc.enabled) {
frm.add_custom_button(__('View Hub'),
() => frappe.set_route('Hub', 'Item'));
frm.add_custom_button(__('Sync'), frm.add_custom_button(__('Sync'),
() => frm.call('sync')); () => frm.call('sync'));
} }