123456789101112131415161718192021222324252627 |
- Template.boardListHeaderBar.events({
- 'click .js-open-archived-board'() {
- Modal.open('archivedBoards');
- },
- });
- BlazeComponent.extendComponent({
- 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');
|