wekan/client/components/main/brokenCards.js

27 lines
546 B
JavaScript
Raw Normal View History

2021-01-10 00:17:59 +02:00
BlazeComponent.extendComponent({}).register('brokenCardsHeaderBar');
Template.brokenCards.helpers({
userId() {
return Meteor.userId();
},
});
BlazeComponent.extendComponent({
onCreated() {
Meteor.subscribe('setting');
Meteor.subscribe('brokenCards');
},
brokenCardsList() {
const selector = {
$or: [
{ boardId: { $in: [null, ''] } },
{ swimlaneId: { $in: [null, ''] } },
{ listId: { $in: [null, ''] } },
],
2021-01-10 00:17:59 +02:00
};
return Cards.find(selector);
2021-01-10 00:17:59 +02:00
},
}).register('brokenCards');