blob: 6446195d24144565aafd7097e8a2cca317a8aa18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
|