From 3e8383e7901bfbb35483fda72ee4d76b76cb64c8 Mon Sep 17 00:00:00 2001 From: karolina-siemieniuk-morawska <55505399+karolina-siemieniuk-morawska@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:36:58 +0200 Subject: [PATCH] ui: handle update author case * ref: cern-sis/issues-inspire#517 --- ui/src/holdingpen-new/components/AuthorResultItem.tsx | 8 +++++++- .../holdingpen-new/components/ResultItemWithActions.tsx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/src/holdingpen-new/components/AuthorResultItem.tsx b/ui/src/holdingpen-new/components/AuthorResultItem.tsx index c00dc06aa0..d0791d627a 100644 --- a/ui/src/holdingpen-new/components/AuthorResultItem.tsx +++ b/ui/src/holdingpen-new/components/AuthorResultItem.tsx @@ -41,7 +41,7 @@ const renderWorkflowStatus = (status: string) => { icon: , 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.', }, }; @@ -81,6 +81,12 @@ const AuthorResultItem = ({ item }: { item: any }) => {
Author + {item?.get('workflow_type') === 'AUTHOR_UPDATE' && ( + <> + {' '} + Update + + )} {item?.get('user_action') && ( {

- This record is in error state. View the detailed record for more + This record is in error state. View record details for more information.