Fix lint errors.

This commit is contained in:
Lauri Ojansivu 2019-11-20 21:10:11 +02:00
parent 82d76e55e5
commit 788dd0a81a
5 changed files with 76 additions and 84 deletions

View file

@ -7,9 +7,9 @@ BlazeComponent.extendComponent({
canSeeAddCard() {
const list = Template.currentData();
return (
!list.getWipLimit('enabled') ||
list.getWipLimit('soft') ||
!this.reachedWipLimit()
!list.getWipLimit('enabled')
|| list.getWipLimit('soft')
|| !this.reachedWipLimit()
);
},
@ -47,6 +47,8 @@ BlazeComponent.extendComponent({
const currentUser = Meteor.user();
if (currentUser) {
return Meteor.user().getLimitToShowCardsCount();
} else {
return false;
}
},
@ -64,8 +66,8 @@ BlazeComponent.extendComponent({
reachedWipLimit() {
const list = Template.currentData();
return (
list.getWipLimit('enabled') &&
list.getWipLimit('value') <= list.cards().count()
list.getWipLimit('enabled')
&& list.getWipLimit('value') <= list.cards().count()
);
},
@ -175,8 +177,8 @@ BlazeComponent.extendComponent({
const list = Template.currentData();
if (
list.getWipLimit('soft') &&
list.getWipLimit('value') < list.cards().count()
list.getWipLimit('soft')
&& list.getWipLimit('value') < list.cards().count()
) {
list.setWipLimit(list.cards().count());
}
@ -187,8 +189,8 @@ BlazeComponent.extendComponent({
const list = Template.currentData();
// Prevent user from using previously stored wipLimit.value if it is less than the current number of cards in the list
if (
!list.getWipLimit('enabled') &&
list.getWipLimit('value') < list.cards().count()
!list.getWipLimit('enabled')
&& list.getWipLimit('value') < list.cards().count()
) {
list.setWipLimit(list.cards().count());
}