mirror of
https://github.com/wekan/wekan.git
synced 2026-01-22 09:16:10 +01:00
Import boards in Sandstorm
This commit is contained in:
parent
f34ef01de9
commit
d2b1a837e6
8 changed files with 29 additions and 4 deletions
|
|
@ -2,10 +2,11 @@ import { TrelloCreator } from './trelloCreator';
|
|||
import { WekanCreator } from './wekanCreator';
|
||||
|
||||
Meteor.methods({
|
||||
importBoard(board, data, importSource) {
|
||||
importBoard(board, data, importSource, currentBoard) {
|
||||
check(board, Object);
|
||||
check(data, Object);
|
||||
check(importSource, String);
|
||||
check(currentBoard, Match.Maybe(String));
|
||||
let creator;
|
||||
switch (importSource) {
|
||||
case 'trello':
|
||||
|
|
@ -23,6 +24,6 @@ Meteor.methods({
|
|||
// authorized) nothing to check, everyone can import boards in their account
|
||||
|
||||
// 3. create all elements
|
||||
return creator.create(board);
|
||||
return creator.create(board, currentBoard);
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue