mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Fix lint errors.
This commit is contained in:
parent
2cc3507740
commit
8898862d36
10 changed files with 68 additions and 114 deletions
|
@ -1,3 +1,5 @@
|
|||
import { Cookies } from 'meteor/ostrio:cookies';
|
||||
const cookies = new Cookies();
|
||||
let listsColors;
|
||||
Meteor.startup(() => {
|
||||
listsColors = Lists.simpleSchema()._schema.color.allowedValues;
|
||||
|
@ -7,9 +9,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()
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -66,8 +68,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()
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -108,8 +110,6 @@ Template.listHeader.helpers({
|
|||
if (currentUser) {
|
||||
return (currentUser.profile || {}).showDesktopDragHandles;
|
||||
} else {
|
||||
import { Cookies } from 'meteor/ostrio:cookies';
|
||||
const cookies = new Cookies();
|
||||
if (cookies.has('showDesktopDragHandles')) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -177,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());
|
||||
}
|
||||
|
@ -189,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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue