explicit names for stages
@@ -74,14 +74,20 @@ class ModelTrain extends Component {
<Message.Content>
<Message.Header>{ status }</Message.Header>
{stage_status &&
- Object.keys(stage_status).map((stage_name, i) => (
- <p key={stage_name} className="stage">
- <span className="name">{stage_name}</span>
- <span className="divider">|</span>
- <span className="status">{stage_status[stage_name]["status"]}</span>
+ Object.keys(stage_status).map((stage, i) => {
+ let name = stage_status[stage]["name"]
+ let status = stage_status[stage]["status"]
+ let message = stage_status[stage]["message"]
+ return (
+ <p key={stage} className="stage">
+ <span className="name">{name}</span>
+ <span className="divider">{status && <>|</>}</span>
+ <span className="status">{status}</span>
+ <span className="divider">{message && <>|</>}</span>
+ <span className="message">{message}</span>
</p>
- ))
- }
+ )}
+ )}
</Message.Content>
</Message>
<Segment>
