fix: Allow Testing Paged Novels (#1933)
* Fix: Allow testing paged novels * Fix: 1 Page Novel Testing + Redo Chapter Fetch
This commit is contained in:
@@ -403,7 +403,7 @@ export default function ParseNovelSection({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Chapters Table */}
|
{/* Chapters Table */}
|
||||||
{chapters.length > 0 && (
|
{(chapters.length > 0 || sourceNovel.totalPages) && (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center justify-between mb-4">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<h4 className="font-semibold text-foreground">
|
<h4 className="font-semibold text-foreground">
|
||||||
@@ -436,6 +436,16 @@ export default function ParseNovelSection({
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{sourceNovel.totalPages && (
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => fetchPage(currentPage)}
|
||||||
|
disabled={!currentPage || loading}
|
||||||
|
>
|
||||||
|
{loading ? 'Fetching...' : 'Chapter Fetch'}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="overflow-x-auto border border-border rounded-lg">
|
<div className="overflow-x-auto border border-border rounded-lg">
|
||||||
<table className="w-full text-sm">
|
<table className="w-full text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user