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

@ -254,6 +254,10 @@ Boards.helpers({
return _.findWhere(this.labels, { name, color });
},
getLabelById(labelId){
return _.findWhere(this.labels, { _id: labelId });
},
labelIndex(labelId) {
return _.pluck(this.labels, '_id').indexOf(labelId);
},