mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Import boards in Sandstorm
This commit is contained in:
parent
f34ef01de9
commit
d2b1a837e6
8 changed files with 29 additions and 4 deletions
|
|
@ -488,7 +488,14 @@ export class TrelloCreator {
|
|||
}
|
||||
}
|
||||
|
||||
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.parseActions(board.actions);
|
||||
const boardId = this.createBoardAndLabels(board);
|
||||
this.createLists(board.lists, boardId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue