Improve description

4.x.x
shamalka 5 years ago
parent 4e3a45fa93
commit 404b1b11a9

@ -47,7 +47,7 @@
}, },
"IN-REVIEW": { "IN-REVIEW": {
"title": "In-Review", "title": "In-Review",
"text": "This state can be applied when the application is being reviewed by approvers.\n You can only proceed to one of the following states:", "text": "In this state the application is being reviewed by approvers. You can move from this state to APPROVED state if it is approved by reviewers. Otherwise, you can move the application into either REJECTED state or CREATED state based on the feedback getting by reviewers.",
"icon": "audit", "icon": "audit",
"step": 1 "step": 1
}, },
@ -83,7 +83,7 @@
}, },
"RETIRED": { "RETIRED": {
"title": "Retired", "title": "Retired",
"text": "The final state of an application, where no transition of states will be allowed after this.\n You can only proceed to one of the following states:", "text": "The final state of an application, where no transition of states will be allowed after this.",
"icon": "rest", "icon": "rest",
"step": 7 "step": 7
} }

@ -177,7 +177,6 @@ class LifeCycle extends React.Component {
} = this.state; } = this.state;
const { lifecycle } = this.props; const { lifecycle } = this.props;
let proceedingStates = []; let proceedingStates = [];
if ( if (
lifecycle !== null && lifecycle !== null &&
lifecycle.hasOwnProperty(currentStatus) && lifecycle.hasOwnProperty(currentStatus) &&
@ -211,7 +210,7 @@ class LifeCycle extends React.Component {
title={step.title} title={step.title}
disabled={current !== step.step} disabled={current !== step.step}
description={ description={
current === step.step ? ( current === step.step && (
<div style={{ width: 400 }}> <div style={{ width: 400 }}>
<p>{step.text}</p> <p>{step.text}</p>
{proceedingStates.map(lifecycleState => { {proceedingStates.map(lifecycleState => {
@ -228,8 +227,6 @@ class LifeCycle extends React.Component {
); );
})} })}
</div> </div>
) : (
''
) )
} }
/> />
@ -251,17 +248,13 @@ class LifeCycle extends React.Component {
<Tag color="blue">{selectedStatus}</Tag> <Tag color="blue">{selectedStatus}</Tag>
</Text> </Text>
<br /> <br />
{lifecycle && {lifecycle && selectedStatus && lifecycle[selectedStatus].isEndState && (
selectedStatus &&
lifecycle[selectedStatus].isEndState ? (
<Alert <Alert
message="In this state application becomes completely obsolete. Be careful, message="In this state application becomes completely obsolete. Be careful,
this process cannot be undone." this process cannot be undone."
banner banner
style={{ marginTop: 5 }} style={{ marginTop: 5 }}
/> />
) : (
<div />
)} )}
<Divider orientation="left">Reason</Divider> <Divider orientation="left">Reason</Divider>
<ReactQuill <ReactQuill

Loading…
Cancel
Save