Fixed: Import Lists messages can now show in UI

This commit is contained in:
Robin Dadswell 2021-05-07 17:08:19 +01:00 committed by GitHub
parent 02bcb4d865
commit ca2e62492d
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 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>