summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-22 15:31:33 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-22 15:31:33 -0300
commit2d7d9b5d9ffed0349b2cf65acc61561c21d05aaf (patch)
tree370a433ba3e3390a73da469a613edad7089d4ce3
parentecb8c8823358c91e00868e559c0fbaf256e9eb9d (diff)
downloadwekan-2d7d9b5d9ffed0349b2cf65acc61561c21d05aaf.tar.gz
wekan-2d7d9b5d9ffed0349b2cf65acc61561c21d05aaf.tar.bz2
wekan-2d7d9b5d9ffed0349b2cf65acc61561c21d05aaf.zip
Fix lint errors
-rw-r--r--client/components/lists/listBody.js2
-rw-r--r--client/components/swimlanes/swimlanes.js25
-rw-r--r--server/migrations.js6
3 files changed, 6 insertions, 27 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 7a63eab6..0911f828 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -45,7 +45,7 @@ BlazeComponent.extendComponent({
listId: this.data()._id,
boardId: this.data().board()._id,
sort: sortIndex,
- swimlaneId: swimlaneId,
+ swimlaneId,
});
// In case the filter is active we need to add the newly inserted card in
// the list of exceptions -- cards that are not filtered. Otherwise the
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js
index 5c2429dd..397f9e9b 100644
--- a/client/components/swimlanes/swimlanes.js
+++ b/client/components/swimlanes/swimlanes.js
@@ -11,7 +11,7 @@ BlazeComponent.extendComponent({
},
id() {
- return this._id;
+ return this._id;
},
// XXX Flow components allow us to avoid creating these two setter methods by
@@ -184,7 +184,7 @@ BlazeComponent.extendComponent({
return [{
submit(evt) {
evt.preventDefault();
- var titleInput = this.find('.list-name-input');
+ let titleInput = this.find('.list-name-input');
if (titleInput) {
const title = titleInput.value.trim();
if (title) {
@@ -200,7 +200,6 @@ BlazeComponent.extendComponent({
} else {
titleInput = this.find('.swimlane-name-input');
const title = titleInput.value.trim();
- console.log(title);
if (title) {
Swimlanes.insert({
title,
@@ -214,27 +213,7 @@ BlazeComponent.extendComponent({
}
},
}];
- },/*
- if (titleInput) {
- const title = titleInput.value.trim();
- if (title) {
- Lists.insert({
- title,
- boardId: Session.get('currentBoard'),
- sort: $('.list').length,
- });
-
- titleInput.value = '';
- titleInput.focus();
- }
- } else {
- titleInput = this.find('.swimlane-name-input');
- console.log(titleInput);
- }
- },
- }];
},
- */
}).register('addListAndSwimlaneForm');
Template.swimlane.helpers({
diff --git a/server/migrations.js b/server/migrations.js
index 932a3cfd..fbb33636 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -157,11 +157,11 @@ Migrations.add('add-swimlanes', () => {
const swimlane = Swimlanes.findOne({ boardId: board._id });
let swimlaneId = '';
if (swimlane)
- swimlaneId = swimlane._id
+ swimlaneId = swimlane._id;
else
swimlaneId = Swimlanes.direct.insert({
- boardId: board._id,
- title: 'Default'
+ boardId: board._id,
+ title: 'Default',
});
Cards.find({ boardId: board._id }).forEach((card) => {