diff options
author | enahum <nahumhbl@gmail.com> | 2016-08-18 17:36:43 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-08-18 14:36:43 -0800 |
commit | a820b1640bcea06d93fed790b891a853ea02e498 (patch) | |
tree | 3b4d3d5289cc39ace0bfc60c36295f32b91dd38b /webapp/routes/route_help.jsx | |
parent | b95bd3d8ccea5735b944df8f2fbe7758257ab15e (diff) | |
download | chat-a820b1640bcea06d93fed790b891a853ea02e498.tar.gz chat-a820b1640bcea06d93fed790b891a853ea02e498.tar.bz2 chat-a820b1640bcea06d93fed790b891a853ea02e498.zip |
PLT-2345 Switch "help" link below text input box to localizable version (#3794)
Diffstat (limited to 'webapp/routes/route_help.jsx')
-rw-r--r-- | webapp/routes/route_help.jsx | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/webapp/routes/route_help.jsx b/webapp/routes/route_help.jsx new file mode 100644 index 000000000..37c3c4884 --- /dev/null +++ b/webapp/routes/route_help.jsx @@ -0,0 +1,66 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import * as RouteUtils from 'routes/route_utils.jsx'; + +export default { + path: 'help', + indexRoute: {onEnter: (nextState, replace) => replace('/help/messaging')}, + childRoutes: [ + { + getComponents: (location, callback) => { + System.import('components/help/help_controller.jsx').then(RouteUtils.importComponentSuccess(callback)); + }, + childRoutes: [ + { + path: 'messaging', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/messaging.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + }, + { + path: 'composing', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/composing.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + }, + { + path: 'mentioning', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/mentioning.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + }, + { + path: 'formatting', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/formatting.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + }, + { + path: 'attaching', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/attaching.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + }, + { + path: 'commands', + indexRoute: { + getComponents: (location, callback) => { + System.import('components/help/components/commands.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + } + ] + } + ] +}; |