diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index b6fa04a7f7..12c59224e1 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -1818,12 +1818,21 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { return { label: __("Clear Assignment", null, "Button in list view actions menu"), action: () => { - this.disable_list_update = true; - bulk_operations.clear_assignment(this.get_checked_items(true), () => { - this.disable_list_update = false; - this.clear_checked_items(); - this.refresh(); - }); + frappe.confirm( + "Are you sure you want to clear the assignments?", + () => { + this.disable_list_update = true; + bulk_operations.clear_assignment(this.get_checked_items(true), () => { + this.disable_list_update = false; + this.clear_checked_items(); + this.refresh(); + }); + }, + () => { + this.clear_checked_items(); + this.refresh(); + } + ); }, standard: true, };