mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
31 lines
580 B
JavaScript
31 lines
580 B
JavaScript
Template.boardHeaderBar.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');
|