- //
- //
- // `,
- // ],
+ [
+ "replay",
+ () => html`
+
+
+ {
+ if (
+ this.interactiveReplayFrame?.contentDocument
+ ?.readyState === "complete"
+ ) {
+ this.isReloadingReplay = true;
+ this.showReplayPageLoadingDialog();
+ this.interactiveReplayFrame.contentWindow?.location.reload();
+ }
+ }}
+ >
+
+
+
+
+ `,
+ ],
[
"screenshots",
() => html`
@@ -875,18 +927,118 @@ export class ArchivedItemQA extends TailwindElement {
case "resources":
return renderResources(this.crawlData, this.qaData);
case "replay":
- return renderReplay(this.crawlData);
+ return this.renderReplay();
default:
break;
}
};
return html`
-
+ e.preventDefault()}
+ >
+
+
+
+ ${msg("Following links during review is disabled.")}
+
+
+ `;
+ }
+
private readonly renderRWP = (rwpId: string, { qa }: { qa: boolean }) => {
if (!rwpId) return;
@@ -956,6 +1108,14 @@ export class ArchivedItemQA extends TailwindElement {
}
}
+ private showReplayPageLoadingDialog() {
+ if (!this.interactiveReplayFrame) return;
+ void this.interactiveReplayFrame
+ .closest(".replayContainer")
+ ?.querySelector
+ ${when(
+ this.crawlData?.replayUrl,
+ (replayUrl) =>
+ html``,
+ )}
+
+ ${msg("Loading page")}
+