diff --git a/payments/templates/includes/third_party_apps.js b/payments/templates/includes/third_party_apps.js new file mode 100644 index 0000000..fe75f23 --- /dev/null +++ b/payments/templates/includes/third_party_apps.js @@ -0,0 +1,9 @@ +frappe.ready(() => { + $(".btn-delete-app").on("click", function(event) { + frappe.call({ + method:"frappe.www.third_party_apps.delete_client", + args: {"client_id": $(this).data("client_id"), + } + }).done(r => location.href="/third_party_apps"); + }); +});