partial fix for: #935: (#960)

- add route for /artifacts/upload/<id> to be used for uploads
- link uploads to /artifacts/upload/<id> instead of /artifacts/crawl/<id>
This commit is contained in:
Ilya Kreymer 2023-07-07 14:23:26 -07:00 committed by GitHub
parent de4b18aa67
commit d3a757e20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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`<a
class="item row"
role="button"
href=${`${this.baseUrl || `/orgs/${this.crawl?.oid}/artifacts/crawl`}/${
href=${`${this.baseUrl || `/orgs/${this.crawl?.oid}/artifacts/${typePath}`}/${
this.crawl?.id
}?artifactType=${artifactType}${hash}`}
@click=${async (e: MouseEvent) => {

View File

@ -18,6 +18,7 @@ export const ROUTES = {
"(/edit/:resourceId)",
"(/crawls)",
"(/crawl/:crawlOrWorkflowId)",
"(/upload/:crawlOrWorkflowId)",
"(/artifact/:artifactId)",
"(/profile(/:browserProfileId)(/browser/:browserId))",
"(/members)",