Fixed: Import Lists provider message in UI

This commit is contained in:
Robin Dadswell 2021-05-07 12:50:48 +01:00 committed by GitHub
parent e18888562a
commit cbdec6dcc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import Alert from 'Components/Alert';
import DescriptionList from 'Components/DescriptionList/DescriptionList';
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
import Form from 'Components/Form/Form';
@ -75,7 +76,8 @@ function EditImportListModalContent(props) {
qualityProfileId,
metadataProfileId,
tags,
fields
fields,
message
} = item;
return (
@ -98,6 +100,15 @@ function EditImportListModalContent(props) {
{
!isFetching && !error &&
<Form {...otherProps}>
{
!!message &&
<Alert
className={styles.message}
kind={message.value.type}
>
{message.value.message}
</Alert>
}
<FormGroup>
<FormLabel>Name</FormLabel>