mirror of
https://github.com/wekan/wekan.git
synced 2026-03-05 21:30:17 +01:00
Merge branch 'master' of github.com:wekan/wekan
This commit is contained in:
commit
d7adfc779e
1 changed files with 2 additions and 2 deletions
|
|
@ -99,14 +99,14 @@ BlazeComponent.extendComponent({
|
||||||
}).register('filterSidebar');
|
}).register('filterSidebar');
|
||||||
|
|
||||||
function mutateSelectedCards(mutationName, ...args) {
|
function mutateSelectedCards(mutationName, ...args) {
|
||||||
Cards.find(MultiSelection.getMongoSelector()).forEach(card => {
|
Cards.find(MultiSelection.getMongoSelector(), {sort: ['sort']}).forEach(card => {
|
||||||
card[mutationName](...args);
|
card[mutationName](...args);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
BlazeComponent.extendComponent({
|
||||||
mapSelection(kind, _id) {
|
mapSelection(kind, _id) {
|
||||||
return Cards.find(MultiSelection.getMongoSelector()).map(card => {
|
return Cards.find(MultiSelection.getMongoSelector(), {sort: ['sort']}).map(card => {
|
||||||
const methodName = kind === 'label' ? 'hasLabel' : 'isAssigned';
|
const methodName = kind === 'label' ? 'hasLabel' : 'isAssigned';
|
||||||
return card[methodName](_id);
|
return card[methodName](_id);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue