mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 23:21:47 +01:00
Fix miniscreen render
This commit is contained in:
parent
eb62c9ce6a
commit
775476f97c
5 changed files with 24 additions and 21 deletions
|
|
@ -29,7 +29,7 @@ Lists.attachSchema(new SimpleSchema({
|
|||
},
|
||||
swimlaneId: {
|
||||
/**
|
||||
* the swimalen associated to this list. Used for templates
|
||||
* the swimlane associated to this list. Used for templates
|
||||
*/
|
||||
type: String,
|
||||
defaultValue: '',
|
||||
|
|
@ -137,7 +137,7 @@ Lists.allow({
|
|||
});
|
||||
|
||||
Lists.helpers({
|
||||
copy() {
|
||||
copy(swimlaneId) {
|
||||
const oldId = this._id;
|
||||
let _id = null;
|
||||
existingListWithSameName = Lists.findOne({
|
||||
|
|
@ -159,7 +159,7 @@ Lists.helpers({
|
|||
card.type = 'cardType-card';
|
||||
card.listId = _id;
|
||||
card.boardId = this.boardId;
|
||||
card.swimlaneId = this.swimlaneId;
|
||||
card.swimlaneId = swimlaneId;
|
||||
card.copy();
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -112,9 +112,9 @@ Swimlanes.helpers({
|
|||
archived: false,
|
||||
}).forEach((list) => {
|
||||
list.type = 'list';
|
||||
list.swimlaneId = _id;
|
||||
list.swimlaneId = '';
|
||||
list.boardId = this.boardId;
|
||||
list.copy();
|
||||
list.copy(_id);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
@ -127,7 +127,8 @@ Swimlanes.helpers({
|
|||
|
||||
lists() {
|
||||
return Lists.find(Filter.mongoSelector({
|
||||
swimlaneId: this._id,
|
||||
boardId: this.boardId,
|
||||
swimlaneId: {$in: [this._id, '']},
|
||||
archived: false,
|
||||
}), { sort: ['sort'] });
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue