Skip to content

Commit

Permalink
ui: handle update author case
Browse files Browse the repository at this point in the history
  • Loading branch information
karolina-siemieniuk-morawska committed Aug 13, 2024
1 parent 3a29334 commit 3e8383e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ui/src/holdingpen-new/components/AuthorResultItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const renderWorkflowStatus = (status: string) => {
icon: <WarningOutlined className="mr2" />,
text: 'Error',
description:
'This record is in error state. View the detailed record for more information.',
'This record is in error state. View record details for more information.',
},
};

Expand Down Expand Up @@ -81,6 +81,12 @@ const AuthorResultItem = ({ item }: { item: any }) => {
<div className="flex">
<div style={{ marginTop: '-2px' }}>
<UnclickableTag>Author</UnclickableTag>
{item?.get('workflow_type') === 'AUTHOR_UPDATE' && (
<>
{' '}
<UnclickableTag color="processing">Update</UnclickableTag>
</>
)}
{item?.get('user_action') && (
<UnclickableTag
className={`decission-pill ${resolveDecision(
Expand Down
2 changes: 1 addition & 1 deletion ui/src/holdingpen-new/components/ResultItemWithActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ResultItemWithActions = ({ item }: { item: any }) => {
</p>

<small>
This record is in error state. View the detailed record for more
This record is in error state. View record details for more
information.
</small>
</div>
Expand Down

0 comments on commit 3e8383e

Please sign in to comment.