mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Merge remote-tracking branch 'origin/kanban_delete_tags' into staging
This commit is contained in:
commit
25a2d614f4
@ -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();
|
||||
|
||||
@ -313,9 +313,16 @@ define([
|
||||
if (target.classList.contains('kanban-trash')) {
|
||||
list.splice(index1, 1);
|
||||
if (list.indexOf(id) === -1) {
|
||||
var board = self.options.boards.data[id];
|
||||
var boardItems = board.item;
|
||||
boardItems.forEach(function(item) {
|
||||
delete self.options.boards.items[item];
|
||||
});
|
||||
delete self.options.boards.data[id];
|
||||
}
|
||||
self.onChange();
|
||||
self.setBoards(self.options.boards);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user