mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
Adds start and due date to cards model.
This commit is contained in:
parent
1ad4107201
commit
89df0bda9b
1 changed files with 24 additions and 0 deletions
|
|
@ -56,6 +56,14 @@ Cards.attachSchema(new SimpleSchema({
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
startAt: {
|
||||||
|
type: Date,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
|
dueAt: {
|
||||||
|
type: Date,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
// XXX Should probably be called `authorId`. Is it even needed since we have
|
// XXX Should probably be called `authorId`. Is it even needed since we have
|
||||||
// the `members` field?
|
// the `members` field?
|
||||||
userId: {
|
userId: {
|
||||||
|
|
@ -207,6 +215,22 @@ Cards.mutations({
|
||||||
unsetCover() {
|
unsetCover() {
|
||||||
return { $unset: { coverId: '' }};
|
return { $unset: { coverId: '' }};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setStart(startAt) {
|
||||||
|
return { $set: { startAt }};
|
||||||
|
},
|
||||||
|
|
||||||
|
unsetStart() {
|
||||||
|
return { $unset: { startAt: '' }};
|
||||||
|
},
|
||||||
|
|
||||||
|
setDue(dueAt) {
|
||||||
|
return { $set: { dueAt }};
|
||||||
|
},
|
||||||
|
|
||||||
|
unsetDue() {
|
||||||
|
return { $unset: { dueAt: '' }};
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Meteor.isServer) {
|
if (Meteor.isServer) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue