mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
Merge branch 'feature-rules' of https://github.com/Angtrim/wekan into Angtrim-feature-rules
This commit is contained in:
commit
6673b79738
60 changed files with 3074 additions and 259 deletions
|
|
@ -280,6 +280,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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue