Fixed: Import Lists messages can now show in UI

pull/6280/head
Robin Dadswell 4 years ago committed by GitHub
parent 02bcb4d865
commit ca2e62492d
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 Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
@ -47,7 +48,8 @@ function EditImportListModalContent(props) {
rootFolderPath,
searchOnAdd,
tags,
fields
fields,
message
} = item;
return (
@ -74,6 +76,15 @@ function EditImportListModalContent(props) {
<Form
{...otherProps}
>
{
!!message &&
<Alert
className={styles.message}
kind={message.value.type}
>
{message.value.message}
</Alert>
}
<FormGroup>
<FormLabel>{translate('Name')}</FormLabel>

Loading…
Cancel
Save