Hide file size when crawl is running (#648)

This commit is contained in:
sua yoo 2023-03-07 16:02:19 -08:00
parent 85416e2ca2
commit 91e415fac2
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567

View File

@ -303,10 +303,12 @@ export class CrawlListItem extends LitElement {
</div>
<div class="col">
<div class="detail">
${this.safeRender(
(crawl) => html`<sl-format-bytes
value=${crawl.fileSize || 0}
></sl-format-bytes>`
${this.safeRender((crawl) =>
isActive
? html`<span class="unknownValue">${msg("In Progress")}</span>`
: html`<sl-format-bytes
value=${crawl.fileSize || 0}
></sl-format-bytes>`
)}
</div>
<div class="desc">