diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:13:35 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:13:35 +0100 |
commit | eb62c9ce6ad0fa0d5de7889ec087db8cdc579339 (patch) | |
tree | 23fb755a2c54fd4cd153af9ab3e7d391449547e7 /models/swimlanes.js | |
parent | 60be4df76e02afdf4dd62f8e03505d55c0ed119e (diff) | |
download | wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.gz wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.tar.bz2 wekan-eb62c9ce6ad0fa0d5de7889ec087db8cdc579339.zip |
Fix lint errors
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r-- | models/swimlanes.js | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js index 205f1498..6f679a8d 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -102,20 +102,20 @@ Swimlanes.allow({ Swimlanes.helpers({ copy() { - const oldId = this._id; - this._id = null; - const _id = Swimlanes.insert(this); + const oldId = this._id; + this._id = null; + const _id = Swimlanes.insert(this); - // Copy all lists in swimlane - Lists.find({ - swimlaneId: oldId, - archived: false, - }).forEach((list) => { - list.type = 'list'; - list.swimlaneId = _id; - list.boardId = this.boardId; - list.copy(); - }); + // Copy all lists in swimlane + Lists.find({ + swimlaneId: oldId, + archived: false, + }).forEach((list) => { + list.type = 'list'; + list.swimlaneId = _id; + list.boardId = this.boardId; + list.copy(); + }); }, cards() { @@ -127,8 +127,8 @@ Swimlanes.helpers({ lists() { return Lists.find(Filter.mongoSelector({ - swimlaneId: this._id, - archived: false, + swimlaneId: this._id, + archived: false, }), { sort: ['sort'] }); }, @@ -155,22 +155,22 @@ Swimlanes.helpers({ }, isTemplateContainer() { - return this.type === 'template-container'; + return this.type === 'template-container'; }, isListTemplatesSwimlane() { - const user = Users.findOne(Meteor.userId()); - return user.profile.listTemplatesSwimlaneId === this._id; + const user = Users.findOne(Meteor.userId()); + return user.profile.listTemplatesSwimlaneId === this._id; }, isCardTemplatesSwimlane() { - const user = Users.findOne(Meteor.userId()); - return user.profile.cardTemplatesSwimlaneId === this._id; + const user = Users.findOne(Meteor.userId()); + return user.profile.cardTemplatesSwimlaneId === this._id; }, isBoardTemplatesSwimlane() { - const user = Users.findOne(Meteor.userId()); - return user.profile.boardTemplatesSwimlaneId === this._id; + const user = Users.findOne(Meteor.userId()); + return user.profile.boardTemplatesSwimlaneId === this._id; }, }); @@ -182,7 +182,7 @@ Swimlanes.mutations({ archive() { if (this.isTemplateSwimlane()) { this.lists().forEach((list) => { - return list.archive(); + return list.archive(); }); } return { $set: { archived: true } }; @@ -191,7 +191,7 @@ Swimlanes.mutations({ restore() { if (this.isTemplateSwimlane()) { this.allLists().forEach((list) => { - return list.restore(); + return list.restore(); }); } return { $set: { archived: false } }; |