Skip to content

Commit

Permalink
handle small crawls
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed May 7, 2024
1 parent 473286d commit 77ca5ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/features/archived-items/crawl-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,15 @@ export class CrawlQueue extends LiteElement {
}

private renderOffsetControl() {
if (!this.queue) return;
if (!this.queue) {
return msg("Queued URLs");
}
if (this.pageOffset === 0 && this.queue.total <= this.pageSize) {
return msg(
str`Queued URLs from 1 to ${this.queue.total.toLocaleString()}`,
);
}

const offsetValue = this.pageOffset + 1;
const countMax = Math.min(
this.pageOffset + this.pageSize,
Expand Down

0 comments on commit 77ca5ee

Please sign in to comment.