diff options
author | George Goldberg <george@gberg.me> | 2017-08-01 13:11:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 13:11:29 +0100 |
commit | 00e8b6621a7ddf13222144d4acf80421204a23cc (patch) | |
tree | 0e6b967eeb813d99c0f07cdcedc3638d76d61144 /webapp/components/admin_console/elasticsearch_status/index.js | |
parent | 25a2013890c7e07b4621fa9b18342e7f35363049 (diff) | |
download | chat-00e8b6621a7ddf13222144d4acf80421204a23cc.tar.gz chat-00e8b6621a7ddf13222144d4acf80421204a23cc.tar.bz2 chat-00e8b6621a7ddf13222144d4acf80421204a23cc.zip |
PLT-6595 (Client): Elasticsearch indexing system console UI (#6991)
* PLT-6595: System Console for Elasticsearch Job Management.
* Fixing UI issues
* Fixing colors
* ESLint Fixes.
* Update test snapshots.
* Fixing cancel button
* Fix review comments.
* Config capitalisation.
* Review fixes.
Diffstat (limited to 'webapp/components/admin_console/elasticsearch_status/index.js')
-rw-r--r-- | webapp/components/admin_console/elasticsearch_status/index.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/webapp/components/admin_console/elasticsearch_status/index.js b/webapp/components/admin_console/elasticsearch_status/index.js new file mode 100644 index 000000000..6446195d2 --- /dev/null +++ b/webapp/components/admin_console/elasticsearch_status/index.js @@ -0,0 +1,28 @@ +// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; +import {getJobsByType} from 'mattermost-redux/actions/jobs'; +import {JobTypes} from 'utils/constants.jsx'; + +import * as Selectors from 'mattermost-redux/selectors/entities/jobs'; + +import Status from './status.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps, + jobs: Selectors.makeGetJobsByType(JobTypes.ELASTICSEARCH_POST_INDEXING)(state) + }; +} + +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + getJobsByType + }, dispatch) + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(Status); |