Skip to content

Commit 0f2bd69

Browse files
committed
Only show import segments button when video open
1 parent 71b9e49 commit 0f2bd69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/popup/SegmentListComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ function ImportSegments(props: ImportSegmentsProps) {
386386
<div id="issueReporterImportExport" className={props.status === LoadingStatus.Loading ? "hidden" : ""}>
387387
<div id="importExportButtons">
388388
<button id="importSegmentsButton"
389+
className={props.status === LoadingStatus.SegmentsFound || props.status === LoadingStatus.NoSegmentsFound ? "" : "hidden"}
389390
title={chrome.i18n.getMessage("importSegments")}
390391
onClick={() => {
391392
setImportMenuVisible(!importMenuVisible);

0 commit comments

Comments
 (0)