Always display Download Logs button in Error Logs tab (#1209)
This commit is contained in:
parent
730a160f75
commit
304ea6d52f
@ -176,22 +176,16 @@ export class CrawlDetail extends LiteElement {
|
|||||||
break;
|
break;
|
||||||
case "logs":
|
case "logs":
|
||||||
sectionContent = this.renderPanel(
|
sectionContent = this.renderPanel(
|
||||||
html`
|
html` ${this.renderTitle(msg("Error Logs"))}
|
||||||
${this.renderTitle(msg("Error Logs"))}
|
<sl-button
|
||||||
${when(
|
href=${`/api/orgs/${this.orgId}/crawls/${this.crawlId}/logs?auth_bearer=${authToken}`}
|
||||||
this.logs?.total,
|
download=${`btrix-${this.crawlId}-logs.txt`}
|
||||||
() =>
|
size="small"
|
||||||
html`<sl-button
|
variant="primary"
|
||||||
href=${`/api/orgs/${this.orgId}/crawls/${this.crawlId}/logs?auth_bearer=${authToken}`}
|
>
|
||||||
download=${`btrix-${this.crawlId}-logs.txt`}
|
<sl-icon slot="prefix" name="download"></sl-icon>
|
||||||
size="small"
|
${msg("Download Logs")}
|
||||||
variant="primary"
|
</sl-button>`,
|
||||||
>
|
|
||||||
<sl-icon slot="prefix" name="download"></sl-icon>
|
|
||||||
${msg("Download Logs")}</sl-button
|
|
||||||
>`
|
|
||||||
)}
|
|
||||||
`,
|
|
||||||
this.renderLogs()
|
this.renderLogs()
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user