mirror of
https://github.com/wekan/wekan.git
synced 2026-02-21 23:44:06 +01:00
Implement board archive and restoration
This commit is contained in:
parent
9faaf07e02
commit
48ac8b026f
32 changed files with 138 additions and 42 deletions
|
|
@ -5,7 +5,14 @@ Template.boardMenuPopup.events({
|
|||
Popup.close();
|
||||
},
|
||||
'click .js-change-board-color': Popup.open('boardChangeColor'),
|
||||
'click .js-change-language': Popup.open('setLanguage')
|
||||
'click .js-change-language': Popup.open('setLanguage'),
|
||||
'click .js-archive-board ': Popup.afterConfirm('archiveBoard', function() {
|
||||
var boardId = Session.get('currentBoard');
|
||||
Boards.update(boardId, { $set: { archived: true }});
|
||||
// XXX We should have some kind of notification on top of the page to
|
||||
// confirm that the board was successfully archived.
|
||||
FlowRouter.go('home');
|
||||
})
|
||||
});
|
||||
|
||||
Template.boardChangeTitlePopup.events({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue