mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
#2176 deleting kanban board now deletes relevant tags
This commit is contained in:
parent
5a62afb17f
commit
d67956cbd0
@ -432,6 +432,10 @@ define([
|
||||
var list = boards.list || [];
|
||||
var idx = list.indexOf(id);
|
||||
if (idx !== -1) { list.splice(idx, 1); }
|
||||
var boardItems = (boards.data || {})[id].item;
|
||||
boardItems.forEach(function(item) {
|
||||
delete kanban.options.boards.items[item];
|
||||
});
|
||||
delete (boards.data || {})[id];
|
||||
kanban.removeBoard(id);
|
||||
return void commit();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user