use new object properties for orders and process

This commit is contained in:
GotPPay
2018-08-14 23:35:45 +02:00
parent 8b5374ee24
commit 672fb62728
4 changed files with 25 additions and 24 deletions

View File

@@ -44,7 +44,7 @@ class ProcessContainer extends Component {
componentDidMount() {
this.props.dispatch(fetchOrderInfo(this.props.idOrder));
this.props.dispatch(getAllDataForInstallation(this.props.idOrder, usedForDirective, stepsNameForInstallation, fileType));
//this.props.dispatch(getAllDataForInstallation(this.props.idOrder, usedForDirective, stepsNameForInstallation, fileType));
const orderPackagePairs = [];
const isSchedulingDisabled = {};
isSchedulingDisabled[this.props.idOrder] = true;
@@ -187,12 +187,12 @@ class ProcessContainer extends Component {
</div>
}
{
(orderInfo && orderInfo.info && !isLoading) &&
(orderInfo && !isLoading) &&
<div>
<WiaasBox
customHeader={ProcessNavContainer}
customHeaderParams={{
orderInfo: orderInfo.info,
orderInfo: orderInfo,
packages: orderInfo.packages,
onViewChange: this.onViewChange,
getActiveView: this.getActiveView,
@@ -211,7 +211,7 @@ class ProcessContainer extends Component {
<OrderProcess
onViewChange={this.onViewChange}
orderStatus={orderInfo.status}
orderProcess={this.getProcess(orderInfo.process)}/>
orderProcess={orderInfo.process}/>
}
{
this.state.activeView === 'packages' &&