Add autoclick to workflow and crawl settings display (#2374)

Also rename Auto-Scroll in UI to Autoscroll for consistency
This commit is contained in:
Tessa Walsh 2025-02-11 10:28:30 -05:00 committed by GitHub
parent 98a45b0d85
commit d4032d4ea2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -176,7 +176,7 @@ export class ConfigDetails extends BtrixElement {
), ),
)} )}
${this.renderSetting( ${this.renderSetting(
msg("Auto-Scroll Behavior"), msg("Autoscroll Behavior"),
crawlConfig?.config.behaviors && crawlConfig?.config.behaviors &&
!crawlConfig.config.behaviors.includes("autoscroll") !crawlConfig.config.behaviors.includes("autoscroll")
? msg("Disabled") ? msg("Disabled")
@ -184,6 +184,15 @@ export class ConfigDetails extends BtrixElement {
>${msg("Enabled (default)")}</span >${msg("Enabled (default)")}</span
>`, >`,
)} )}
${this.renderSetting(
msg("Autoclick Behavior"),
crawlConfig?.config.behaviors &&
crawlConfig.config.behaviors.includes("autoclick")
? msg("Enabled")
: html`<span class="text-neutral-400"
>${msg("Disabled (default)")}</span
>`,
)}
${this.renderSetting( ${this.renderSetting(
msg("Delay Before Next Page"), msg("Delay Before Next Page"),
renderTimeLimit(crawlConfig?.config.pageExtraDelay, 0), renderTimeLimit(crawlConfig?.config.pageExtraDelay, 0),

View File

@ -1188,7 +1188,7 @@ https://archiveweb.page/images/${"logo.svg"}`}
name="autoscrollBehavior" name="autoscrollBehavior"
?checked=${this.formState.autoscrollBehavior} ?checked=${this.formState.autoscrollBehavior}
> >
${msg("Auto-scroll behavior")} ${msg("Autoscroll behavior")}
</sl-checkbox>`, </sl-checkbox>`,
)} )}
${this.renderHelpTextCol( ${this.renderHelpTextCol(