Add changes related to lint & importing movies

Fixes #4768
This commit is contained in:
nitsua 2020-08-02 18:49:06 -04:00 committed by Qstick
parent ef80314219
commit f39824cb9c
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class ImportMovie extends Component {
path, path,
rootFoldersFetching, rootFoldersFetching,
rootFoldersError, rootFoldersError,
rootFoldersPopulated,
unmappedFolders unmappedFolders
} = this.props; } = this.props;
@ -109,6 +110,7 @@ class ImportMovie extends Component {
{ {
!rootFoldersError && !rootFoldersError &&
!rootFoldersFetching && !rootFoldersFetching &&
rootFoldersPopulated &&
!unmappedFolders.length ? !unmappedFolders.length ?
<div> <div>
All movies in {path} have been imported All movies in {path} have been imported
@ -119,6 +121,7 @@ class ImportMovie extends Component {
{ {
!rootFoldersError && !rootFoldersError &&
!rootFoldersFetching && !rootFoldersFetching &&
rootFoldersPopulated &&
!!unmappedFolders.length && !!unmappedFolders.length &&
scroller ? scroller ?
<ImportMovieTableConnector <ImportMovieTableConnector