summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardArchive.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-06-08 14:20:40 +0300
committerLauri Ojansivu <x@xet7.org>2018-06-08 14:20:40 +0300
commitd4df405862109baf9e777e4865316899ec4601be (patch)
tree472b28ccb9f593475031097b37de7e691a7e641f /client/components/boards/boardArchive.js
parentccf1e8bc3c23729549ef529bc08899e11f8b0382 (diff)
parentdc687848e6f7e96d9a62489c77e94fd55963ddf1 (diff)
downloadwekan-d4df405862109baf9e777e4865316899ec4601be.tar.gz
wekan-d4df405862109baf9e777e4865316899ec4601be.tar.bz2
wekan-d4df405862109baf9e777e4865316899ec4601be.zip
Merge branch 'devel'
Diffstat (limited to 'client/components/boards/boardArchive.js')
-rw-r--r--client/components/boards/boardArchive.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js
index acb53149..dbebdd70 100644
--- a/client/components/boards/boardArchive.js
+++ b/client/components/boards/boardArchive.js
@@ -29,6 +29,18 @@ BlazeComponent.extendComponent({
board.restore();
Utils.goBoardId(board._id);
},
+ 'click .js-delete-board': Popup.afterConfirm('boardDelete', function() {
+ Popup.close();
+ const isSandstorm = Meteor.settings && Meteor.settings.public &&
+ Meteor.settings.public.sandstorm;
+ if (isSandstorm && Session.get('currentBoard')) {
+ const currentBoard = Boards.findOne(Session.get('currentBoard'));
+ Boards.remove(currentBoard._id);
+ }
+ const board = this.currentData();
+ Boards.remove(board._id);
+ FlowRouter.go('home');
+ }),
}];
},
}).register('archivedBoards');