Add UI for importing card-as-card and board-as-card

This commit is contained in:
Andrés Manelli 2018-03-20 00:13:42 -03:00
parent 193af893ee
commit dcc7b2970f
8 changed files with 199 additions and 1 deletions

View file

@ -212,6 +212,10 @@ Boards.helpers({
return this.permission === 'public';
},
cards() {
return Cards.find({ boardId: this._id, archived: false }, { sort: { title: 1 } });
},
lists() {
return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } });
},

View file

@ -133,6 +133,13 @@ Cards.attachSchema(new SimpleSchema({
defaultValue: -1,
optional: true,
},
type: {
type: String,
},
importedId: {
type: String,
optional: true,
},
}));
Cards.allow({