diff --git a/frontend/src/components/ChannelList.tsx b/frontend/src/components/ChannelList.tsx
index 214d62e5..7df96c8e 100644
--- a/frontend/src/components/ChannelList.tsx
+++ b/frontend/src/components/ChannelList.tsx
@@ -7,6 +7,7 @@ import FormattedNumber from './FormattedNumber';
import Button from './Button';
import ChannelIcon from './ChannelIcon';
import ChannelBanner from './ChannelBanner';
+import LoadingIndicator from './LoadingIndicator';
import { useUserConfigStore } from '../stores/UserConfigStore';
type ChannelListProps = {
@@ -18,7 +19,10 @@ const ChannelList = ({ channelList, refreshChannelList }: ChannelListProps) => {
const { userConfig } = useUserConfigStore();
const viewStyle = userConfig.view_style_channel;
- if (!channelList || channelList.length === 0) {
+ if (!channelList) {
+ return ;
+ }
+ if (channelList.length === 0) {
return
No channels found...
;
}
diff --git a/frontend/src/components/PlaylistList.tsx b/frontend/src/components/PlaylistList.tsx
index 53cd6ec8..91322b60 100644
--- a/frontend/src/components/PlaylistList.tsx
+++ b/frontend/src/components/PlaylistList.tsx
@@ -4,6 +4,7 @@ import updatePlaylistSubscription from '../api/actions/updatePlaylistSubscriptio
import formatDate from '../functions/formatDates';
import Button from './Button';
import PlaylistThumbnail from './PlaylistThumbnail';
+import LoadingIndicator from './LoadingIndicator';
import { useUserConfigStore } from '../stores/UserConfigStore';
import { PlaylistType } from '../api/loader/loadPlaylistById';
@@ -16,7 +17,10 @@ const PlaylistList = ({ playlistList, setRefresh }: PlaylistListProps) => {
const { userConfig } = useUserConfigStore();
const viewStyle = userConfig.view_style_playlist;
- if (!playlistList || playlistList.length === 0) {
+ if (!playlistList) {
+ return ;
+ }
+ if (playlistList.length === 0) {
return No playlists found...
;
}
diff --git a/frontend/src/components/VideoList.tsx b/frontend/src/components/VideoList.tsx
index 00cfbb73..28737a1c 100644
--- a/frontend/src/components/VideoList.tsx
+++ b/frontend/src/components/VideoList.tsx
@@ -2,6 +2,7 @@ import { ViewStylesEnum, ViewStylesType } from '../configuration/constants/ViewS
import { VideoType } from '../pages/Home';
import VideoListItem from './VideoListItem';
import VideoListItemTable from './VideoListItemTable';
+import LoadingIndicator from './LoadingIndicator';
type VideoListProps = {
videoList: VideoType[] | undefined;
@@ -18,7 +19,10 @@ const VideoList = ({
showReorderButton = false,
refreshVideoList,
}: VideoListProps) => {
- if (!videoList || videoList.length === 0) {
+ if (!videoList) {
+ return ;
+ }
+ if (videoList.length === 0) {
return No videos found...
;
}
diff --git a/frontend/src/pages/ChannelVideo.tsx b/frontend/src/pages/ChannelVideo.tsx
index 4248ae33..07c441b6 100644
--- a/frontend/src/pages/ChannelVideo.tsx
+++ b/frontend/src/pages/ChannelVideo.tsx
@@ -171,8 +171,8 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
{!hasVideos && (
- Try going to the downloads page to start the
- scan and download tasks.
+ Try going to the downloads page to start the scan
+ and download tasks.
)}
diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx
index e85ca038..e7b1c8d8 100644
--- a/frontend/src/pages/Home.tsx
+++ b/frontend/src/pages/Home.tsx
@@ -198,10 +198,10 @@ const Home = () => {
+ videoList={videoList}
+ viewStyle={userConfig.view_style_home}
+ refreshVideoList={setRefreshVideoList}
+ />
{!hasVideos && (
If you've already added a channel or playlist, try going to the{' '}
diff --git a/frontend/src/pages/Playlist.tsx b/frontend/src/pages/Playlist.tsx
index 019e13b4..9bcb4c45 100644
--- a/frontend/src/pages/Playlist.tsx
+++ b/frontend/src/pages/Playlist.tsx
@@ -350,12 +350,12 @@ const Playlist = () => {
+ videoList={videos}
+ viewStyle={viewStyle}
+ playlistId={playlistId}
+ showReorderButton={isCustomPlaylist}
+ refreshVideoList={setRefresh}
+ />
{videoInPlaylistCount === 0 && (
<>
{isCustomPlaylist && (