Merge pull request #589 from webrecorder/crawl-scale-to-instances
This commit is contained in:
commit
fea30d23ee
@ -256,7 +256,7 @@ export class CrawlDetail extends LiteElement {
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<btrix-dialog
|
<btrix-dialog
|
||||||
label=${msg("Change Crawler Instances")}
|
label=${msg("Edit Crawler Instances")}
|
||||||
?open=${this.openDialogName === "scale"}
|
?open=${this.openDialogName === "scale"}
|
||||||
@sl-request-close=${() => (this.openDialogName = undefined)}
|
@sl-request-close=${() => (this.openDialogName = undefined)}
|
||||||
@sl-show=${() => (this.isDialogVisible = true)}
|
@sl-show=${() => (this.isDialogVisible = true)}
|
||||||
@ -356,7 +356,7 @@ export class CrawlDetail extends LiteElement {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<sl-icon name="plus-slash-minus" slot="prefix"></sl-icon>
|
<sl-icon name="plus-slash-minus" slot="prefix"></sl-icon>
|
||||||
<span> ${msg("Scale")} </span>
|
<span> ${msg("Crawler Instances")} </span>
|
||||||
</sl-button>
|
</sl-button>
|
||||||
<sl-button size="small" @click=${this.stop}>
|
<sl-button size="small" @click=${this.stop}>
|
||||||
<sl-icon name="slash-circle" slot="prefix"></sl-icon>
|
<sl-icon name="slash-circle" slot="prefix"></sl-icon>
|
||||||
@ -852,12 +852,13 @@ export class CrawlDetail extends LiteElement {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="text-center">
|
<div>
|
||||||
<sl-radio-group value=${this.crawl.scale}>
|
<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(
|
${scaleOptions.map(
|
||||||
({ value, label }) => html`
|
({ value, label }) => html`
|
||||||
<sl-radio-button
|
<sl-radio-button
|
||||||
value=${value}
|
value=${value}
|
||||||
|
size="small"
|
||||||
@click=${() => this.scale(value)}
|
@click=${() => this.scale(value)}
|
||||||
?disabled=${this.isSubmittingUpdate}
|
?disabled=${this.isSubmittingUpdate}
|
||||||
>${label}</sl-radio-button
|
>${label}</sl-radio-button
|
||||||
|
Loading…
Reference in New Issue
Block a user