mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 23:51:48 +01:00
Fix lint errors
This commit is contained in:
parent
67301e07e2
commit
17308dc5f3
3 changed files with 127 additions and 134 deletions
|
|
@ -337,11 +337,11 @@ class CardEndDate extends CardDate {
|
|||
let classes = 'end-date' + ' ';
|
||||
const dueAt = this.data().getDue();
|
||||
const theDate = this.date.get();
|
||||
if (this.date.get().diff(this.data().getDue(), 'days') >= 2)
|
||||
if (theDate.diff(dueAt, 'days') >= 2)
|
||||
classes += 'long-overdue';
|
||||
else if (this.date.get().diff(this.data().getDue(), 'days') >= 0)
|
||||
else if (theDate.diff(dueAt, 'days') >= 0)
|
||||
classes += 'due';
|
||||
else if (this.date.get().diff(this.data().getDue(), 'days') >= -2)
|
||||
else if (theDate.diff(dueAt, 'days') >= -2)
|
||||
classes += 'almost-due';
|
||||
return classes;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue