mirror of
https://github.com/wekan/wekan.git
synced 2026-02-12 19:24:20 +01:00
parent
f03fee5162
commit
9bea6a52d3
5 changed files with 17 additions and 28 deletions
|
|
@ -29,9 +29,9 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
isStarred: function() {
|
||||
var currentBoard = this.currentData();
|
||||
var boardId = Session.get('currentBoard');
|
||||
var user = Meteor.user();
|
||||
return currentBoard && user && user.hasStarred(currentBoard._id);
|
||||
return user && user.hasStarred(boardId);
|
||||
},
|
||||
|
||||
// Only show the star counter if the number of star is greater than 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue