Skip to content

Commit

Permalink
feat(js,import): fix end-of-message dot at import
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Jul 12, 2024
1 parent fb20c7e commit d62ec2b
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,15 @@ const ImportSuccessElement = ({ element, importActions }) => {

<CreatedLabel text={createdLabelText} onClick={updateShowField} show={element.created} />

{
!isEmpty(element.errors) && !(element.created || element.updated) && (
<span className="text-danger">{' '}{gettext('could not be imported')}</span>
)}
{
!isEmpty(element.errors) && (element.created || element.updated) && (
<>
{', '}
<span className="text-danger">{gettext('but could not be added to parent element')}</span>
{'.'}
</>
)}
{
!isEmpty(element.errors) && (
<span className="text-danger">
{' '}{gettext('could not be imported')}
{(element.created || element.updated) && `, ${gettext('but could not be added to parent element')}`}
{'.'}
</span>
)
}

</div>
<Errors elementErrors={element.errors} />
Expand Down

0 comments on commit d62ec2b

Please sign in to comment.