mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 18:56:10 +01:00
More explicit file names
This commit is contained in:
parent
29e93162c2
commit
b5dabfe886
18 changed files with 7 additions and 6 deletions
30
client/components/boards/boardsList.js
Normal file
30
client/components/boards/boardsList.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
BlazeComponent.extendComponent({
|
||||
template: function() {
|
||||
return 'boardList';
|
||||
},
|
||||
|
||||
boards: function() {
|
||||
return Boards.find({
|
||||
archived: false,
|
||||
'members.userId': Meteor.userId()
|
||||
}, {
|
||||
sort: ['title']
|
||||
});
|
||||
},
|
||||
|
||||
isStarred: function() {
|
||||
var user = Meteor.user();
|
||||
return user && user.hasStarred(this.currentData()._id);
|
||||
},
|
||||
|
||||
events: function() {
|
||||
return [{
|
||||
'click .js-add-board': Popup.open('createBoard'),
|
||||
'click .js-star-board': function(evt) {
|
||||
var boardId = this.currentData()._id;
|
||||
Meteor.user().toggleBoardStar(boardId);
|
||||
evt.preventDefault();
|
||||
}
|
||||
}];
|
||||
}
|
||||
}).register('boardList');
|
||||
Loading…
Add table
Add a link
Reference in a new issue