summaryrefslogtreecommitdiffstats
path: root/models/wekanCreator.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-07-25 16:26:25 +0300
committerLauri Ojansivu <x@xet7.org>2017-07-25 16:26:25 +0300
commitfe2163a54614f64a705da537b97c41aa7c1a83c8 (patch)
treea82069a72a4fe09e7f7846fa027570f963be16d6 /models/wekanCreator.js
parent7b4970a8d980f3918fcf7fbb584d7a67aae9cc13 (diff)
parent1eaada0feba4b690e9126d663e58fe2b9eb64c7c (diff)
downloadwekan-fe2163a54614f64a705da537b97c41aa7c1a83c8.tar.gz
wekan-fe2163a54614f64a705da537b97c41aa7c1a83c8.tar.bz2
wekan-fe2163a54614f64a705da537b97c41aa7c1a83c8.zip
Merge branch 'export-import-sandstorm' of https://github.com/GhassenRjab/wekan into GhassenRjab-export-import-sandstorm
Diffstat (limited to 'models/wekanCreator.js')
-rw-r--r--models/wekanCreator.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index 6dd56fb1..b5f9b0ff 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -478,7 +478,14 @@ export class WekanCreator {
}
}
- create(board) {
+ create(board, currentBoardId) {
+ // TODO : Make isSandstorm variable global
+ const isSandstorm = Meteor.settings && Meteor.settings.public &&
+ Meteor.settings.public.sandstorm;
+ if (isSandstorm && currentBoardId) {
+ const currentBoard = Boards.findOne(currentBoardId);
+ currentBoard.archive();
+ }
this.parseActivities(board);
const boardId = this.createBoardAndLabels(board);
this.createLists(board.lists, boardId);