Add additional dates (received & end), default title of checklists to 'Checklist'

Remove translations

Add additional dates (received & end), default name checklists to Checklist
This commit is contained in:
RJevnikar 2018-03-26 19:04:02 +00:00
parent 80941e57d3
commit 07217d0e51
51 changed files with 209 additions and 18455 deletions

View file

@ -59,6 +59,10 @@ Cards.attachSchema(new SimpleSchema({
type: [String],
optional: true,
},
receivedAt: {
type: Date,
optional: true,
},
startAt: {
type: Date,
optional: true,
@ -67,6 +71,10 @@ Cards.attachSchema(new SimpleSchema({
type: Date,
optional: true,
},
endAt: {
type: Date,
optional: true,
},
spentTime: {
type: Number,
decimal: true,
@ -271,6 +279,14 @@ Cards.mutations({
return {$unset: {coverId: ''}};
},
setReceived(receivedAt) {
return {$set: {receivedAt}};
},
unsetReceived() {
return {$unset: {receivedAt: ''}};
},
setStart(startAt) {
return {$set: {startAt}};
},
@ -287,6 +303,14 @@ Cards.mutations({
return {$unset: {dueAt: ''}};
},
setEnd(endAt) {
return {$set: {endAt}};
},
unsetEnd() {
return {$unset: {endAt: ''}};
},
setOvertime(isOvertime) {
return {$set: {isOvertime}};
},

View file

@ -6,6 +6,7 @@ Checklists.attachSchema(new SimpleSchema({
},
title: {
type: String,
defaultValue: 'Checklist',
},
finishedAt: {
type: Date,