Fix "Run now" button (#234)

This commit is contained in:
sua yoo 2022-05-30 16:15:10 -07:00 committed by GitHub
parent 955197579e
commit 6e19e854be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,9 @@ export class CrawlTemplatesList extends LiteElement {
? html`<sl-tooltip> ? html`<sl-tooltip>
<span slot="content" class="capitalize"> <span slot="content" class="capitalize">
${msg( ${msg(
str`Last Crawl: ${t.lastCrawlState && t.lastCrawlState.replace(/_/g, " ")}` str`Last Crawl: ${
t.lastCrawlState && t.lastCrawlState.replace(/_/g, " ")
}`
)} )}
</span> </span>
<a <a
@ -524,7 +526,7 @@ export class CrawlTemplatesList extends LiteElement {
? "bg-purple-50" ? "bg-purple-50"
: "bg-white"} border-purple-200 hover:border-purple-500 text-purple-600 transition-colors" : "bg-white"} border-purple-200 hover:border-purple-500 text-purple-600 transition-colors"
@click=${(e: any) => { @click=${(e: any) => {
e.stopPropagation(); e.preventDefault();
this.runningCrawlsMap[t.id] this.runningCrawlsMap[t.id]
? this.navTo( ? this.navTo(
`/archives/${this.archiveId}/crawls/crawl/${ `/archives/${this.archiveId}/crawls/crawl/${