mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 16:48:49 +01:00
Labels activities
This commit is contained in:
parent
99e7c65907
commit
9c6d374b95
19 changed files with 480 additions and 60 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue