New: Health check for import lists with missing root folders

New: Show missing root folder path in edit for Import List

(cherry picked from commit ae196af2ad368d49fde2358f0987ed7650c7f29c)

Closes #821
This commit is contained in:
Mark McDowall
2021-02-08 23:12:23 -08:00
committed by Bogdan
parent 44673eb4ee
commit b7fb42345c
6 changed files with 107 additions and 4 deletions
@@ -10,6 +10,7 @@ function RootFolderSelectInputOption(props) {
value,
name,
freeSpace,
isMissing,
isMobile,
...otherProps
} = props;
@@ -29,11 +30,20 @@ function RootFolderSelectInputOption(props) {
<div>{text}</div>
{
freeSpace != null &&
freeSpace == null ?
null :
<div className={styles.freeSpace}>
{formatBytes(freeSpace)} Free
</div>
}
{
isMissing ?
<div className={styles.isMissing}>
Missing
</div> :
null
}
</div>
</EnhancedSelectInputOption>
);
@@ -43,6 +53,7 @@ RootFolderSelectInputOption.propTypes = {
name: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
freeSpace: PropTypes.number,
isMissing: PropTypes.bool,
isMobile: PropTypes.bool.isRequired
};