${this.renderSearch()}
${msg("View:")}
{
const value = (e.target as SlSelect).value as CrawlState[];
await this.updateComplete;
this.filterBy = {
...this.filterBy,
state: value,
};
}}
>
${finishedCrawlStates.map(this.renderStatusMenuItem)}
${msg("Sort by:")}
{
const field = e.detail.item.value as SortField;
this.orderBy = {
field: field,
direction:
sortableFields[field].defaultDirection ||
this.orderBy.direction,
};
}}
>
${Object.entries(sortableFields).map(
([value, { label }]) => html`
${label}
`
)}
{
this.orderBy = {
...this.orderBy,
direction: this.orderBy.direction === "asc" ? "desc" : "asc",
};
}}
>
${this.userId
? html`
${msg("No matching crawls found.")}
`;
}
if (this.crawls?.page && this.crawls?.page > 1) {
return html`