mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add import Wekan board feature
This commit is contained in:
parent
61b2c91ffe
commit
3f4c285551
11 changed files with 1096 additions and 529 deletions
|
|
@ -80,19 +80,16 @@ FlowRouter.route('/shortcuts', {
|
|||
},
|
||||
});
|
||||
|
||||
FlowRouter.route('/import', {
|
||||
FlowRouter.route('/import/:source', {
|
||||
name: 'import',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentCard', null);
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action(params) {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentCard', null);
|
||||
Session.set('importSource', params.source);
|
||||
|
||||
Filter.reset();
|
||||
EscapeActions.executeAll();
|
||||
},
|
||||
],
|
||||
action() {
|
||||
Filter.reset();
|
||||
EscapeActions.executeAll();
|
||||
BlazeLayout.render('defaultLayout', {
|
||||
headerBar: 'importHeaderBar',
|
||||
content: 'import',
|
||||
|
|
@ -132,6 +129,7 @@ const redirections = {
|
|||
'/boards': '/',
|
||||
'/boards/:id/:slug': '/b/:id/:slug',
|
||||
'/boards/:id/:slug/:cardId': '/b/:id/:slug/:cardId',
|
||||
'/import': '/import/trello',
|
||||
};
|
||||
|
||||
_.each(redirections, (newPath, oldPath) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue