Prepare to create card from template

This commit is contained in:
Andrés Manelli 2019-02-23 16:36:29 +01:00
parent 7a6afb8aea
commit 0fec711545
7 changed files with 57 additions and 60 deletions

View file

@ -67,6 +67,12 @@ CardComments.allow({
});
CardComments.helpers({
copy(newCardId) {
this.cardId = newCardId;
this._id = null;
CardComments.insert(this);
},
user() {
return Users.findOne(this.userId);
},