${msg("Crawling")}
${when(
this.isCrawler,
() => html`
${msg("New Crawl Workflow")}
`
)}
${this.renderControls()}
${when(
this.fetchErrorStatusCode,
() => html`
`;
}
private renderWorkflowList() {
if (!this.workflows) return;
const flowFns = [
map((workflow: Workflow) => ({
...workflow,
_lastUpdated: this.workflowLastUpdated(workflow),
_name: workflow.name || workflow.firstSeed,
})),
orderBy(this.orderBy.field, this.orderBy.direction),
map(this.renderWorkflowItem),
];
if (this.filterByScheduled === true) {
flowFns.unshift(filter(({ schedule }: any) => Boolean(schedule)));
} else if (this.filterByScheduled === false) {
flowFns.unshift(filter(({ schedule }: any) => !schedule));
}
if (this.searchBy.length >= MIN_SEARCH_LENGTH) {
flowFns.unshift(this.filterResults);
}
return html`