diff --git a/app/components-react/highlighter/ClipsView.tsx b/app/components-react/highlighter/ClipsView.tsx index 6dc6515d008d..656d9e320cfc 100644 --- a/app/components-react/highlighter/ClipsView.tsx +++ b/app/components-react/highlighter/ClipsView.tsx @@ -15,7 +15,7 @@ import { } from './utils'; import ClipsViewModal from './ClipsViewModal'; import { useVuex } from 'components-react/hooks'; -import { Button } from 'antd'; +import { Button, Tooltip } from 'antd'; import { SUPPORTED_FILE_TYPES } from 'services/highlighter/constants'; import { $t } from 'services/i18n'; import path from 'path'; @@ -59,6 +59,8 @@ export default function ClipsView({ return HighlighterService.getClips(HighlighterService.views.clips, props.id); }, [props.id]); + const noClipsToExport = getClips().some(clip => clip.enabled) === false; + useEffect(() => { setClipsLoaded(false); setClips(sortAndFilterClips(getClips(), props.id, activeFilter)); @@ -196,13 +198,36 @@ export default function ClipsView({ {props.streamTitle ?? $t('All highlight clips')} -
+
+ + + + + +
{sortedList.length === 0 ? ( diff --git a/app/components-react/highlighter/EditingControls.tsx b/app/components-react/highlighter/EditingControls.tsx index ad9397c5f1a4..24fb05f1a30c 100644 --- a/app/components-react/highlighter/EditingControls.tsx +++ b/app/components-react/highlighter/EditingControls.tsx @@ -152,19 +152,6 @@ export function EditingControls({ )} - - ); }