Skip to content

Commit

Permalink
Merge pull request #1108 from sennetconsortium/libpitt/1091-title
Browse files Browse the repository at this point in the history
Update title of register/edit forms based on action - #1091
  • Loading branch information
maxsibilla authored Dec 14, 2023
2 parents 5ada11d + c016d25 commit 9c67801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/custom/layout/entity/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function EntityHeader({entity, data, isEditMode, values, showGroup = true, admin
return (
<Container className="px-0" fluid={true}>
<Row md={12}>
<h4>{_t(`${entity} Information`)} {values && values.status && <span className={`${getStatusColor(values.status)} badge`}><SenNetPopover text={getStatusDefinition(values.status)} className={'status-info'}>{values.status}</SenNetPopover></span>}</h4>
<h4>{isEditMode ? 'Edit' : 'Register'} {entity} {values && values.status && <span className={`${getStatusColor(values.status)} badge`}><SenNetPopover text={getStatusDefinition(values.status)} className={'status-info'}>{values.status}</SenNetPopover></span>}</h4>
</Row>
{adminGroup && (data.pipeline_message || data.validation_message) && (equals(data['status'], 'Error') || equals(data['status'], 'Invalid')) &&
<SenNetAlert className={"h6"} variant={'warning'} text={data.pipeline_message || data.validation_message} icon={<ExclamationTriangleFill/>}/>
Expand Down

0 comments on commit 9c67801

Please sign in to comment.