Fixed: Import Lists provider message in UI

pull/2188/head
Robin Dadswell 4 years ago committed by GitHub
parent e18888562a
commit cbdec6dcc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

Loading…
Cancel
Save