summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/manage_roles_modal/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/admin_console/manage_roles_modal/index.js')
-rw-r--r--webapp/components/admin_console/manage_roles_modal/index.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/webapp/components/admin_console/manage_roles_modal/index.js b/webapp/components/admin_console/manage_roles_modal/index.js
new file mode 100644
index 000000000..1ca243621
--- /dev/null
+++ b/webapp/components/admin_console/manage_roles_modal/index.js
@@ -0,0 +1,25 @@
+// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {connect} from 'react-redux';
+import {bindActionCreators} from 'redux';
+import {updateUserRoles} from 'mattermost-redux/actions/users';
+
+import ManageRolesModal from './manage_roles_modal.jsx';
+
+function mapStateToProps(state, ownProps) {
+ return {
+ ...ownProps,
+ userAccessTokensEnabled: state.entities.admin.config.ServiceSettings.EnableUserAccessTokens
+ };
+}
+
+function mapDispatchToProps(dispatch) {
+ return {
+ actions: bindActionCreators({
+ updateUserRoles
+ }, dispatch)
+ };
+}
+
+export default connect(mapStateToProps, mapDispatchToProps)(ManageRolesModal);