diff --git a/ui/public/config.js b/ui/public/config.js index 5d251335a..1fa9f1fe1 100644 --- a/ui/public/config.js +++ b/ui/public/config.js @@ -11,6 +11,7 @@ ASSIGN_NO_PROFILE_UI_FEATURE_FLAG: true, ASSIGN_NOT_LOGGED_IN_FEATURE_FLAG: true, SELF_CURATION_BUTTON: true, + INSPIRE_WORKFLOWS_DAGS_URL: null, /* Example: BANNERS: [ { diff --git a/ui/src/holdingpen-new/containers/DetailPageContainer/AuthorDetailPageContainer.tsx b/ui/src/holdingpen-new/containers/DetailPageContainer/AuthorDetailPageContainer.tsx index 9cd5a6936..321a5a64f 100644 --- a/ui/src/holdingpen-new/containers/DetailPageContainer/AuthorDetailPageContainer.tsx +++ b/ui/src/holdingpen-new/containers/DetailPageContainer/AuthorDetailPageContainer.tsx @@ -25,6 +25,7 @@ import { columnsSubject, columnsAdvisors, } from './columnData'; +import { getConfigFor } from '../../../common/config'; interface AuthorDetailPageContainerProps { dispatch: ActionCreator; @@ -47,13 +48,14 @@ const AuthorDetailPageContainer: React.FC = ({ const data = author?.get('data') as Map; const tickets = author?.get('tickets') as Map; + const ERRORS_URL = getConfigFor('INSPIRE_WORKFLOWS_DAGS_URL'); const OPEN_SECTIONS = [ data?.get('positions') && 'institutions', data?.get('project_membership') && 'projects', (data?.get('urls') || data?.get('ids')) && 'links', (data?.get('arxiv_categories') || data?.get('.advisors')) && 'other', - author?.get('_error_msg') && 'errors', + author?.get('status') === 'error' && 'errors', 'delete', ].filter(Boolean); @@ -177,11 +179,15 @@ const AuthorDetailPageContainer: React.FC = ({ - {author?.get('_error_msg') && ( + {author?.get('status') === 'error' && ( -
- {author?.get('_error_msg')} -
+

+ See error details here:{' '} + {`${ERRORS_URL}/${id}`} +

)}