Merge pull request #589 from webrecorder/crawl-scale-to-instances

This commit is contained in:
Henry Wilkinson 2023-02-13 15:08:14 -05:00 committed by GitHub
commit fea30d23ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ export class CrawlDetail extends LiteElement {
</main>
<btrix-dialog
label=${msg("Change Crawler Instances")}
label=${msg("Edit Crawler Instances")}
?open=${this.openDialogName === "scale"}
@sl-request-close=${() => (this.openDialogName = undefined)}
@sl-show=${() => (this.isDialogVisible = true)}
@ -356,7 +356,7 @@ export class CrawlDetail extends LiteElement {
}}
>
<sl-icon name="plus-slash-minus" slot="prefix"></sl-icon>
<span> ${msg("Scale")} </span>
<span> ${msg("Crawler Instances")} </span>
</sl-button>
<sl-button size="small" @click=${this.stop}>
<sl-icon name="slash-circle" slot="prefix"></sl-icon>
@ -852,12 +852,13 @@ export class CrawlDetail extends LiteElement {
];
return html`
<div class="text-center">
<sl-radio-group value=${this.crawl.scale}>
<div>
<sl-radio-group value=${this.crawl.scale} help-text=${msg("Increasing parallel crawler instances can speed up crawls, but may increase the chances of getting rate limited.")}>
${scaleOptions.map(
({ value, label }) => html`
<sl-radio-button
value=${value}
size="small"
@click=${() => this.scale(value)}
?disabled=${this.isSubmittingUpdate}
>${label}</sl-radio-button