|
|
@ -132,7 +132,7 @@ class LifeCycle extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {currentStatus, selectedStatus} = this.state;
|
|
|
|
const {currentStatus, selectedStatus, isConfirmButtonLoading} = this.state;
|
|
|
|
const {lifecycle} = this.props;
|
|
|
|
const {lifecycle} = this.props;
|
|
|
|
const selectedValue = selectedStatus == null ? [] : selectedStatus;
|
|
|
|
const selectedValue = selectedStatus == null ? [] : selectedStatus;
|
|
|
|
let proceedingStates = [];
|
|
|
|
let proceedingStates = [];
|
|
|
@ -180,21 +180,17 @@ class LifeCycle extends React.Component {
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
htmlType="button"
|
|
|
|
htmlType="button"
|
|
|
|
onClick={this.showReasonModal}
|
|
|
|
onClick={this.showReasonModal}
|
|
|
|
disabled={selectedStatus == null}
|
|
|
|
loading={isConfirmButtonLoading}
|
|
|
|
>
|
|
|
|
disabled={selectedStatus == null}>
|
|
|
|
Change
|
|
|
|
Change
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Divider/>
|
|
|
|
<Divider/>
|
|
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
<Modal
|
|
|
|
title="Confirm changing lifecycle state"
|
|
|
|
title="Confirm changing lifecycle state"
|
|
|
|
visible={this.state.isReasonModalVisible}
|
|
|
|
visible={this.state.isReasonModalVisible}
|
|
|
|
onOk={this.addLifeCycle}
|
|
|
|
onOk={this.addLifeCycle}
|
|
|
|
onCancel={this.closeReasonModal}
|
|
|
|
onCancel={this.closeReasonModal}
|
|
|
|
okText="Confirm"
|
|
|
|
okText="Confirm">
|
|
|
|
>
|
|
|
|
|
|
|
|
<Text>
|
|
|
|
<Text>
|
|
|
|
You are going to change the lifecycle state from,<br/>
|
|
|
|
You are going to change the lifecycle state from,<br/>
|
|
|
|
<Tag color="blue">{currentStatus}</Tag>to <Tag
|
|
|
|
<Tag color="blue">{currentStatus}</Tag>to <Tag
|
|
|
|