diff --git a/frontend/src/components/ToggleConfig.tsx b/frontend/src/components/ToggleConfig.tsx index 61b301cc..4238ec33 100644 --- a/frontend/src/components/ToggleConfig.tsx +++ b/frontend/src/components/ToggleConfig.tsx @@ -24,17 +24,20 @@ const ToggleConfig = ({ updateCallback(name, event.target.checked); }} /> + {!value && ( )} + {value && ( )} + {resetCallback !== undefined && } ); diff --git a/frontend/src/pages/Video.tsx b/frontend/src/pages/Video.tsx index 62c86bd5..9485ce13 100644 --- a/frontend/src/pages/Video.tsx +++ b/frontend/src/pages/Video.tsx @@ -38,6 +38,7 @@ import Button from '../components/Button'; import getApiUrl from '../configuration/getApiUrl'; import loadVideoNav, { VideoNavResponseType } from '../api/loader/loadVideoNav'; import useIsAdmin from '../functions/useIsAdmin'; +import ToggleConfig from '../components/ToggleConfig'; const isInPlaylist = (videoId: string, playlist: PlaylistType) => { return playlist.playlist_entries.some(entry => { @@ -484,32 +485,25 @@ const Video = () => { -
Autoplay:
-Autoplay:
+