mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 12:18:49 +01:00
Add template search in Add Card menu
Archive all cards in list when list is archived Remove default board in link popup Only list non-template boards in card link and search
This commit is contained in:
parent
1e72177991
commit
7a6afb8aea
5 changed files with 57 additions and 31 deletions
|
|
@ -195,10 +195,23 @@ Lists.mutations({
|
|||
},
|
||||
|
||||
archive() {
|
||||
Cards.find({
|
||||
listId: this._id,
|
||||
archived: false,
|
||||
}).forEach((card) => {
|
||||
return card.archive();
|
||||
});
|
||||
return { $set: { archived: true } };
|
||||
},
|
||||
|
||||
restore() {
|
||||
cardsToRestore = Cards.find({
|
||||
listId: this._id,
|
||||
archived: true,
|
||||
});
|
||||
cardsToRestore.forEach((card) => {
|
||||
card.restore();
|
||||
});
|
||||
return { $set: { archived: false } };
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue