mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 08:20:12 +01:00
The issue was introduced in3b2eb0fbut was only partially fixed (in urgency) in71b9a42. We sould have test to avoid these trivial regressions! (I guess React will also yelp in this particular case by removing the need to link the template and the "component", and thus removing the possibility to break this link) Fixes #434
31 lines
584 B
JavaScript
31 lines
584 B
JavaScript
Template.boardListHeaderBar.events({
|
|
'click .js-open-archived-board'() {
|
|
Modal.open('archivedBoards');
|
|
},
|
|
});
|
|
|
|
BlazeComponent.extendComponent({
|
|
template() {
|
|
return 'archivedBoards';
|
|
},
|
|
|
|
onCreated() {
|
|
this.subscribe('archivedBoards');
|
|
},
|
|
|
|
archivedBoards() {
|
|
return Boards.find({ archived: true }, {
|
|
sort: ['title'],
|
|
});
|
|
},
|
|
|
|
events() {
|
|
return [{
|
|
'click .js-restore-board'() {
|
|
const board = this.currentData();
|
|
board.restore();
|
|
Utils.goBoardId(board._id);
|
|
},
|
|
}];
|
|
},
|
|
}).register('archivedBoards');
|