hotfix: localize msg string throwing error

Created https://github.com/webrecorder/browsertrix-cloud/issues/495 to catch issues before merge
This commit is contained in:
sua yoo 2023-01-17 16:54:45 -08:00
parent b0745a63f7
commit 7a476e31ed
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567
3 changed files with 3 additions and 4 deletions

View File

View File

@ -1329,15 +1329,14 @@ https://example.net`}
private renderConfirmSettings = () => {
const errorAlert = when(this.formHasError, () => {
const crawlSetupUrl = `${window.location.href.split("#")[0]}#crawlSetup`;
const errorMessage = this.hasRequiredFields()
? msg(
"There are issues with this crawl configuration. Please go through previous steps and fix all issues to continue."
)
: msg(html`There is an issue with this crawl configuration:<br /><br />Crawl
URL(s) required in
<a
href="${`${window.location.href.split("#")[0]}#crawlSetup`}"
class="bold underline hover:no-underline"
<a href="${crawlSetupUrl}" class="bold underline hover:no-underline"
>Crawl Setup</a
>. <br /><br />
Please fix to continue.`);

View File

@ -704,7 +704,7 @@ export class CrawlTemplatesList extends LiteElement {
class="underline hover:no-underline"
href="/archives/${this
.archiveId}/crawls/crawl/${data.started}#watch"
@click=${this.navLink.bind(this)}
@click="${this.navLink.bind(this)}"
>Watch crawl</a
>`
),