mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
fix: reset plaid link button
This commit is contained in:
@@ -25,10 +25,6 @@ frappe.ui.form.on('Bank', {
|
|||||||
frm.add_custom_button(__('Refresh Plaid Link'), () => {
|
frm.add_custom_button(__('Refresh Plaid Link'), () => {
|
||||||
new erpnext.integrations.refreshPlaidLink(frm.doc.plaid_access_token);
|
new erpnext.integrations.refreshPlaidLink(frm.doc.plaid_access_token);
|
||||||
});
|
});
|
||||||
|
|
||||||
frm.add_custom_button(__('Reset Plaid Link'), () => {
|
|
||||||
new erpnext.integrations.plaidLink(frm);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ frappe.ui.form.on('Plaid Settings', {
|
|||||||
new erpnext.integrations.plaidLink(frm);
|
new erpnext.integrations.plaidLink(frm);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.add_custom_button(__('Reset Plaid Link'), () => {
|
||||||
|
new erpnext.integrations.plaidLink(frm);
|
||||||
|
});
|
||||||
|
|
||||||
frm.add_custom_button(__("Sync Now"), () => {
|
frm.add_custom_button(__("Sync Now"), () => {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.enqueue_synchronization",
|
method: "erpnext.erpnext_integrations.doctype.plaid_settings.plaid_settings.enqueue_synchronization",
|
||||||
|
|||||||
Reference in New Issue
Block a user