From d3a757e20b08cbb82caf2c7076eaac6abdec723a Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 7 Jul 2023 14:23:26 -0700 Subject: [PATCH] partial fix for: #935: (#960) - add route for /artifacts/upload/ to be used for uploads - link uploads to /artifacts/upload/ instead of /artifacts/crawl/ --- frontend/src/components/crawl-list.ts | 3 ++- frontend/src/routes.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/crawl-list.ts b/frontend/src/components/crawl-list.ts index 26016600..4a7f9b34 100644 --- a/frontend/src/components/crawl-list.ts +++ b/frontend/src/components/crawl-list.ts @@ -222,10 +222,11 @@ export class CrawlListItem extends LitElement { renderRow() { const hash = this.crawl && isActive(this.crawl.state) ? "#watch" : ""; const artifactType = this.crawl?.type || "crawl"; + const typePath = this.crawl?.type === "upload" ? "upload" : "crawl"; return html` { diff --git a/frontend/src/routes.ts b/frontend/src/routes.ts index 745f3cae..a6cd16d7 100644 --- a/frontend/src/routes.ts +++ b/frontend/src/routes.ts @@ -18,6 +18,7 @@ export const ROUTES = { "(/edit/:resourceId)", "(/crawls)", "(/crawl/:crawlOrWorkflowId)", + "(/upload/:crawlOrWorkflowId)", "(/artifact/:artifactId)", "(/profile(/:browserProfileId)(/browser/:browserId))", "(/members)",