Labels activities

This commit is contained in:
Angelo Gallarello 2018-08-16 16:54:29 +02:00
parent 99e7c65907
commit 9c6d374b95
19 changed files with 480 additions and 60 deletions

View file

@ -58,6 +58,19 @@ BlazeComponent.extendComponent({
}, card.title));
},
lastLabel(){
const lastLabelId = this.currentData().labelId;
const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(lastLabelId);
console.log("LAST");
console.log(lastLabel);
if(lastLabel.name == undefined || lastLabel.name == ""){
return lastLabel.color;
}else{
return lastLabel.name;
}
},
listLabel() {
return this.currentData().list().title;
},