mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -1,7 +1,9 @@
|
|||
let previousPath;
|
||||
FlowRouter.triggers.exit([({path}) => {
|
||||
previousPath = path;
|
||||
}]);
|
||||
FlowRouter.triggers.exit([
|
||||
({ path }) => {
|
||||
previousPath = path;
|
||||
},
|
||||
]);
|
||||
|
||||
FlowRouter.route('/', {
|
||||
name: 'home',
|
||||
|
|
@ -192,9 +194,11 @@ const redirections = {
|
|||
|
||||
_.each(redirections, (newPath, oldPath) => {
|
||||
FlowRouter.route(oldPath, {
|
||||
triggersEnter: [(context, redirect) => {
|
||||
redirect(FlowRouter.path(newPath, context.params));
|
||||
}],
|
||||
triggersEnter: [
|
||||
(context, redirect) => {
|
||||
redirect(FlowRouter.path(newPath, context.params));
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue