Browse Source

feat(minor): delete kanban board from kanban view (#18163) (#18190)

(cherry picked from commit c204fa7d67)

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
version-14
mergify[bot] 2 years ago
committed by GitHub
parent
commit
1939561f61
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 6 deletions
  1. +22
    -6
      frappe/public/js/frappe/views/kanban/kanban_view.js

+ 22
- 6
frappe/public/js/frappe/views/kanban/kanban_view.js View File

@@ -35,12 +35,28 @@ frappe.views.KanbanView = class KanbanView extends frappe.views.ListView {
this.card_meta = this.get_card_meta();
this.page_length = 0;

this.menu_items.push({
label: __("Save filters"),
action: () => {
this.save_kanban_board_filters();
},
});
this.menu_items.push(
...[
{
label: __("Save filters"),
action: () => {
this.save_kanban_board_filters();
},
},
{
label: __("Delete Kanban Board"),
action: () => {
frappe.confirm("Are you sure you want to proceed?", () => {
frappe.db.delete_doc("Kanban Board", this.board_name).then(() => {
frappe.show_alert(`Kanban Board ${this.board_name} deleted.`);
frappe.set_route("List", this.doctype, "List");
});
});
},
},
]
);

return this.get_board();
});
}


Loading…
Cancel
Save