summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardArchive.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-07-25 16:52:58 +0300
committerLauri Ojansivu <x@xet7.org>2017-07-25 16:52:58 +0300
commit96c79f78ccdf1508dc8d4233adfb13b6324de8d1 (patch)
tree986bf40a8191895ebc5ab11b0935e8161e3d0c70 /client/components/boards/boardArchive.js
parent7b4970a8d980f3918fcf7fbb584d7a67aae9cc13 (diff)
parent82d553721ceeec0813955345c50556dcd21ec545 (diff)
downloadwekan-96c79f78ccdf1508dc8d4233adfb13b6324de8d1.tar.gz
wekan-96c79f78ccdf1508dc8d4233adfb13b6324de8d1.tar.bz2
wekan-96c79f78ccdf1508dc8d4233adfb13b6324de8d1.zip
Merge branch 'GhassenRjab-export-import-sandstorm' into devel
Export and import boards in Sandstorm. Thanks to GhassenRjab ! Related #1144 and #799
Diffstat (limited to 'client/components/boards/boardArchive.js')
-rw-r--r--client/components/boards/boardArchive.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js
index aab1e2c6..acb53149 100644
--- a/client/components/boards/boardArchive.js
+++ b/client/components/boards/boardArchive.js
@@ -18,6 +18,13 @@ BlazeComponent.extendComponent({
events() {
return [{
'click .js-restore-board'() {
+ // TODO : Make isSandstorm variable global
+ const isSandstorm = Meteor.settings && Meteor.settings.public &&
+ Meteor.settings.public.sandstorm;
+ if (isSandstorm && Session.get('currentBoard')) {
+ const currentBoard = Boards.findOne(Session.get('currentBoard'));
+ currentBoard.archive();
+ }
const board = this.currentData();
board.restore();
Utils.goBoardId(board._id);