浏览代码

Fix rebase errors

Andrés Manelli 6 年之前
父节点
当前提交
67301e07e2

+ 4 - 18
client/components/cards/cardDate.js

@@ -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;
   }
   }
 
 

+ 0 - 7
client/components/cards/cardDetails.jade

@@ -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'}}

+ 1 - 0
client/components/cards/subtasks.js

@@ -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

+ 1 - 0
server/migrations.js

@@ -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({