Skip to content

Commit

Permalink
fix qa page route
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed Sep 9, 2024
1 parent 386f5c8 commit 92d44f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class ArchivedItemDetail extends BtrixElement {
html`
<btrix-archived-item-detail-qa
.crawlId=${this.itemId}
.itemType=${this.itemType}
.workflowId=${this.workflowId}
.crawl=${this.item}
.qaRuns=${this.qaRuns}
.qaRunId=${this.qaRunId}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/org/archived-item-detail/ui/qa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ export class ArchivedItemDetailQA extends BtrixElement {
`;

@property({ type: String, attribute: false })
crawlId?: string;
workflowId?: string;

@property({ type: String, attribute: false })
itemType: ArchivedItem["type"] = "crawl";
crawlId?: string;

@property({ type: Object, attribute: false })
crawl?: ArchivedItem;
Expand Down Expand Up @@ -771,7 +771,7 @@ export class ArchivedItemDetailQA extends BtrixElement {
${this.qaRunId
? html`
<a
href=${`${this.navigate.orgBasePath}/items/${this.itemType}/${this.crawlId}/review/screenshots?qaRunId=${this.qaRunId}&itemPageId=${page.id}`}
href=${`${this.navigate.orgBasePath}/workflows/${this.workflowId}/crawls/${this.crawlId}/review/screenshots?qaRunId=${this.qaRunId}&itemPageId=${page.id}`}
title=${msg(str`Review "${page.title ?? page.url}"`)}
@click=${this.navigate.link}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/org/collection-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export class CollectionDetail extends BtrixElement {
idx: number,
) => html`
<btrix-archived-item-list-item
href=${`${this.navigate.orgBasePath}/items/${item.type}/${item.id}?collectionId=${this.collectionId}`}
href=${`${this.navigate.orgBasePath}/${item.type === "crawl" ? `workflows/${item.cid}/crawls` : `items/${item.type}`}/${item.id}?collectionId=${this.collectionId}`}
.item=${item}
>
${this.isCrawler
Expand Down

0 comments on commit 92d44f3

Please sign in to comment.