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 | |
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')
-rw-r--r-- | webapp/routes/route_help.jsx | 66 | ||||
-rw-r--r-- | webapp/routes/route_root.jsx | 4 |
2 files changed, 69 insertions, 1 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)); + } + } + } + ] + } + ] +}; diff --git a/webapp/routes/route_root.jsx b/webapp/routes/route_root.jsx index aeca1da72..52eb5c757 100644 --- a/webapp/routes/route_root.jsx +++ b/webapp/routes/route_root.jsx @@ -8,6 +8,7 @@ import Root from 'components/root.jsx'; import claimAccountRoute from 'routes/route_claim.jsx'; import createTeamRoute from 'routes/route_create_team.jsx'; import teamRoute from 'routes/route_team.jsx'; +import helpRoute from 'routes/route_help.jsx'; import BrowserStore from 'stores/browser_store.jsx'; import ErrorStore from 'stores/error_store.jsx'; @@ -79,7 +80,8 @@ export default { getComponents: (location, callback) => { System.import('components/do_verify_email.jsx').then(RouteUtils.importComponentSuccess(callback)); } - } + }, + helpRoute ] ) }, |