mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix lint errors
This commit is contained in:
parent
ecb8c88233
commit
2d7d9b5d9f
3 changed files with 6 additions and 27 deletions
|
|
@ -45,7 +45,7 @@ BlazeComponent.extendComponent({
|
||||||
listId: this.data()._id,
|
listId: this.data()._id,
|
||||||
boardId: this.data().board()._id,
|
boardId: this.data().board()._id,
|
||||||
sort: sortIndex,
|
sort: sortIndex,
|
||||||
swimlaneId: swimlaneId,
|
swimlaneId,
|
||||||
});
|
});
|
||||||
// In case the filter is active we need to add the newly inserted card in
|
// 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
|
// the list of exceptions -- cards that are not filtered. Otherwise the
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
id() {
|
id() {
|
||||||
return this._id;
|
return this._id;
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX Flow components allow us to avoid creating these two setter methods by
|
// XXX Flow components allow us to avoid creating these two setter methods by
|
||||||
|
|
@ -184,7 +184,7 @@ BlazeComponent.extendComponent({
|
||||||
return [{
|
return [{
|
||||||
submit(evt) {
|
submit(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
var titleInput = this.find('.list-name-input');
|
let titleInput = this.find('.list-name-input');
|
||||||
if (titleInput) {
|
if (titleInput) {
|
||||||
const title = titleInput.value.trim();
|
const title = titleInput.value.trim();
|
||||||
if (title) {
|
if (title) {
|
||||||
|
|
@ -200,7 +200,6 @@ BlazeComponent.extendComponent({
|
||||||
} else {
|
} else {
|
||||||
titleInput = this.find('.swimlane-name-input');
|
titleInput = this.find('.swimlane-name-input');
|
||||||
const title = titleInput.value.trim();
|
const title = titleInput.value.trim();
|
||||||
console.log(title);
|
|
||||||
if (title) {
|
if (title) {
|
||||||
Swimlanes.insert({
|
Swimlanes.insert({
|
||||||
title,
|
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');
|
}).register('addListAndSwimlaneForm');
|
||||||
|
|
||||||
Template.swimlane.helpers({
|
Template.swimlane.helpers({
|
||||||
|
|
|
||||||
|
|
@ -157,11 +157,11 @@ Migrations.add('add-swimlanes', () => {
|
||||||
const swimlane = Swimlanes.findOne({ boardId: board._id });
|
const swimlane = Swimlanes.findOne({ boardId: board._id });
|
||||||
let swimlaneId = '';
|
let swimlaneId = '';
|
||||||
if (swimlane)
|
if (swimlane)
|
||||||
swimlaneId = swimlane._id
|
swimlaneId = swimlane._id;
|
||||||
else
|
else
|
||||||
swimlaneId = Swimlanes.direct.insert({
|
swimlaneId = Swimlanes.direct.insert({
|
||||||
boardId: board._id,
|
boardId: board._id,
|
||||||
title: 'Default'
|
title: 'Default',
|
||||||
});
|
});
|
||||||
|
|
||||||
Cards.find({ boardId: board._id }).forEach((card) => {
|
Cards.find({ boardId: board._id }).forEach((card) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue