Skip to content

Commit

Permalink
fix(UX): show logs button on shopify setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jun 27, 2022
1 parent 0d8d5b5 commit 9d131f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ frappe.ui.form.on("Shopify Setting", {
frm.add_custom_button(__('Import Products'), function () {
frappe.set_route('shopify-import-products');
});
frm.add_custom_button(__("View Logs"), () => {
frappe.set_route("List", "Ecommerce Integration Log", {"integration": "Shopify"});
});
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ frappe.ui.form.on("Unicommerce Settings", {
}

frm.add_custom_button(__("View Logs"), () => {
frappe.set_route("List", "Ecommerce Integration Log", "List");
frappe.set_route("List", "Ecommerce Integration Log", {"integration": "Unicommerce"});
});

let sync_buttons = ["Items", "Orders", "Inventory"];
Expand Down

0 comments on commit 9d131f5

Please sign in to comment.