forked from theforeman/foreman-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
83 lines (80 loc) · 2.29 KB
/
index.js
File metadata and controls
83 lines (80 loc) · 2.29 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import TaskDetails from './TaskDetails';
import * as taskDetailsActions from './TaskDetailsActions';
import * as taskActions from '../TaskActions';
import {
selectEndedAt,
selectStartAt,
selectStartBefore,
selectStartedAt,
selectLocks,
selectLinks,
selectInput,
selectOutput,
selectResumable,
selectCancellable,
selectHelp,
selectErrors,
selectProgress,
selectUsername,
selectLabel,
selectExecutionPlan,
selectFailedSteps,
selectRunningSteps,
selectHasSubTasks,
selectUsernamePath,
selectAction,
selectState,
selectResult,
selectTimeoutId,
selectTaskReload,
selectParentTask,
selectExternalId,
selectDynflowEnableConsole,
selectCanEdit,
selectStatus,
selectAPIError,
selectIsLoading,
selectDependsOn,
selectBlocks,
} from './TaskDetailsSelectors';
const mapStateToProps = state => ({
startAt: selectStartAt(state),
startBefore: selectStartBefore(state),
startedAt: selectStartedAt(state),
endedAt: selectEndedAt(state),
input: selectInput(state),
output: selectOutput(state),
resumable: selectResumable(state),
cancellable: selectCancellable(state),
errors: selectErrors(state),
progress: selectProgress(state),
username: selectUsername(state),
label: selectLabel(state),
executionPlan: selectExecutionPlan(state),
failedSteps: selectFailedSteps(state),
runningSteps: selectRunningSteps(state),
help: selectHelp(state),
hasSubTasks: selectHasSubTasks(state),
locks: selectLocks(state),
links: selectLinks(state),
usernamePath: selectUsernamePath(state),
action: selectAction(state),
state: selectState(state),
result: selectResult(state),
timeoutId: selectTimeoutId(state),
taskReload: selectTaskReload(state),
parentTask: selectParentTask(state),
externalId: selectExternalId(state),
dynflowEnableConsole: selectDynflowEnableConsole(state),
canEdit: selectCanEdit(state),
status: selectStatus(state),
APIerror: selectAPIError(state),
isLoading: selectIsLoading(state),
dependsOn: selectDependsOn(state),
blocks: selectBlocks(state),
});
const mapDispatchToProps = dispatch =>
bindActionCreators({ ...taskActions, ...taskDetailsActions }, dispatch);
export default connect(mapStateToProps, mapDispatchToProps)(TaskDetails);