Fix rebase errors

This commit is contained in:
Andrés Manelli 2018-08-11 00:50:20 +02:00
parent 315db00e83
commit 67301e07e2
4 changed files with 6 additions and 25 deletions

View file

@ -256,9 +256,8 @@ class CardStartDate extends CardDate {
classes() { classes() {
let classes = 'start-date' + ' '; let classes = 'start-date' + ' ';
<<<<<<< HEAD const dueAt = this.data().getDue();
const dueAt = this.data().dueAt; const endAt = this.data().getEnd();
const endAt = this.data().endAt;
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().getEnd();
const endAt = this.data().endAt;
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().getDue();
const dueAt = this.data.dueAt;
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;
} }

View file

@ -59,13 +59,6 @@ template(name="cardDetails")
else else
a.js-end-date {{_ 'add'}} a.js-end-date {{_ 'add'}}
.card-details-item.card-details-item-due
h3.card-details-item-title {{_ 'card-due'}}
if dueAt
+cardDueDate
else
a.js-due-date {{_ 'add'}}
.card-details-items .card-details-items
.card-details-item.card-details-item-members .card-details-item.card-details-item-members
h3.card-details-item-title {{_ 'members'}} h3.card-details-item-title {{_ 'members'}}

View file

@ -29,6 +29,7 @@ BlazeComponent.extendComponent({
boardId: targetBoard._id, boardId: targetBoard._id,
sort: sortIndex, sort: sortIndex,
swimlaneId, swimlaneId,
type: 'cardType-card',
}); });
// 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

View file

@ -223,6 +223,7 @@ Migrations.add('add-card-types', () => {
noValidate noValidate
); );
}); });
});
Migrations.add('add-custom-fields-to-cards', () => { Migrations.add('add-custom-fields-to-cards', () => {
Cards.update({ Cards.update({