|
@@ -256,9 +256,8 @@ class CardStartDate extends CardDate {
|
|
|
|
|
|
classes() {
|
|
classes() {
|
|
let classes = 'start-date' + ' ';
|
|
let classes = 'start-date' + ' ';
|
|
-<<<<<<< HEAD
|
|
|
|
- const dueAt = this.data().dueAt;
|
|
|
|
- const endAt = this.data().endAt;
|
|
|
|
|
|
+ const dueAt = this.data().getDue();
|
|
|
|
+ const endAt = this.data().getEnd();
|
|
const theDate = this.date.get();
|
|
const theDate = this.date.get();
|
|
const now = this.now.get();
|
|
const now = this.now.get();
|
|
// if dueAt or endAt exist & are > startAt, startAt doesn't need to be flagged
|
|
// if dueAt or endAt exist & are > startAt, startAt doesn't need to be flagged
|
|
@@ -268,10 +267,6 @@ class CardStartDate extends CardDate {
|
|
else if (theDate.isBefore(now, 'minute'))
|
|
else if (theDate.isBefore(now, 'minute'))
|
|
classes += 'almost-due';
|
|
classes += 'almost-due';
|
|
else
|
|
else
|
|
-=======
|
|
|
|
- if (this.date.get().isBefore(this.now.get(), 'minute') &&
|
|
|
|
- this.now.get().isBefore(this.data().getDue())) {
|
|
|
|
->>>>>>> Add two way binding of card/board times
|
|
|
|
classes += 'current';
|
|
classes += 'current';
|
|
return classes;
|
|
return classes;
|
|
}
|
|
}
|
|
@@ -299,8 +294,7 @@ class CardDueDate extends CardDate {
|
|
|
|
|
|
classes() {
|
|
classes() {
|
|
let classes = 'due-date' + ' ';
|
|
let classes = 'due-date' + ' ';
|
|
-
|
|
|
|
- const endAt = this.data().endAt;
|
|
|
|
|
|
+ const endAt = this.data().getEnd();
|
|
const theDate = this.date.get();
|
|
const theDate = this.date.get();
|
|
const now = this.now.get();
|
|
const now = this.now.get();
|
|
// if the due date is after the end date, green - done early
|
|
// if the due date is after the end date, green - done early
|
|
@@ -341,22 +335,14 @@ class CardEndDate extends CardDate {
|
|
|
|
|
|
classes() {
|
|
classes() {
|
|
let classes = 'end-date' + ' ';
|
|
let classes = 'end-date' + ' ';
|
|
-<<<<<<< HEAD
|
|
|
|
- const dueAt = this.data.dueAt;
|
|
|
|
|
|
+ const dueAt = this.data().getDue();
|
|
const theDate = this.date.get();
|
|
const theDate = this.date.get();
|
|
- // if dueAt exists & is after endAt, endAt doesn't need to be flagged
|
|
|
|
- if ((dueAt) && (theDate.isAfter(dueAt, 'minute')))
|
|
|
|
- classes += 'long-overdue';
|
|
|
|
- else
|
|
|
|
- classes += 'current';
|
|
|
|
-=======
|
|
|
|
if (this.date.get().diff(this.data().getDue(), 'days') >= 2)
|
|
if (this.date.get().diff(this.data().getDue(), 'days') >= 2)
|
|
classes += 'long-overdue';
|
|
classes += 'long-overdue';
|
|
else if (this.date.get().diff(this.data().getDue(), 'days') >= 0)
|
|
else if (this.date.get().diff(this.data().getDue(), 'days') >= 0)
|
|
classes += 'due';
|
|
classes += 'due';
|
|
else if (this.date.get().diff(this.data().getDue(), 'days') >= -2)
|
|
else if (this.date.get().diff(this.data().getDue(), 'days') >= -2)
|
|
classes += 'almost-due';
|
|
classes += 'almost-due';
|
|
->>>>>>> Add two way binding of card/board times
|
|
|
|
return classes;
|
|
return classes;
|
|
}
|
|
}
|
|
|
|
|