Fix export/import not appearing without segments and without chapter enabled

This commit is contained in:
Ajay
2022-09-01 16:32:23 -04:00
parent 69c0fe1caf
commit 9e08d6012c
3 changed files with 7 additions and 9 deletions

View File

@@ -527,12 +527,9 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
}
if (downloadedTimes.length > 0) {
PageElements.issueReporterImportExport.classList.remove("hidden");
if (utils.getCategorySelection("chapter")?.option === CategorySkipOption.ShowOverlay) {
PageElements.importSegmentsButton.classList.remove("hidden");
}
PageElements.exportSegmentsButton.classList.remove("hidden");
} else {
PageElements.issueReporterImportExport.classList.add("hidden");
PageElements.exportSegmentsButton.classList.add("hidden");
}
const isVip = Config.config.isVip;