- 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:
parent
de4b18aa67
commit
d3a757e20b
@ -222,10 +222,11 @@ export class CrawlListItem extends LitElement {
|
|||||||
renderRow() {
|
renderRow() {
|
||||||
const hash = this.crawl && isActive(this.crawl.state) ? "#watch" : "";
|
const hash = this.crawl && isActive(this.crawl.state) ? "#watch" : "";
|
||||||
const artifactType = this.crawl?.type || "crawl";
|
const artifactType = this.crawl?.type || "crawl";
|
||||||
|
const typePath = this.crawl?.type === "upload" ? "upload" : "crawl";
|
||||||
return html`<a
|
return html`<a
|
||||||
class="item row"
|
class="item row"
|
||||||
role="button"
|
role="button"
|
||||||
href=${`${this.baseUrl || `/orgs/${this.crawl?.oid}/artifacts/crawl`}/${
|
href=${`${this.baseUrl || `/orgs/${this.crawl?.oid}/artifacts/${typePath}`}/${
|
||||||
this.crawl?.id
|
this.crawl?.id
|
||||||
}?artifactType=${artifactType}${hash}`}
|
}?artifactType=${artifactType}${hash}`}
|
||||||
@click=${async (e: MouseEvent) => {
|
@click=${async (e: MouseEvent) => {
|
||||||
|
@ -18,6 +18,7 @@ export const ROUTES = {
|
|||||||
"(/edit/:resourceId)",
|
"(/edit/:resourceId)",
|
||||||
"(/crawls)",
|
"(/crawls)",
|
||||||
"(/crawl/:crawlOrWorkflowId)",
|
"(/crawl/:crawlOrWorkflowId)",
|
||||||
|
"(/upload/:crawlOrWorkflowId)",
|
||||||
"(/artifact/:artifactId)",
|
"(/artifact/:artifactId)",
|
||||||
"(/profile(/:browserProfileId)(/browser/:browserId))",
|
"(/profile(/:browserProfileId)(/browser/:browserId))",
|
||||||
"(/members)",
|
"(/members)",
|
||||||
|
Loading…
Reference in New Issue
Block a user