From d1be86367aa48e6740e270ec60798f99d9b6b177 Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 16 Sep 2022 11:37:48 +0200 Subject: [PATCH] change(ui): fix skip in assist, fix clientside window ignore --- frontend/app/player/Player.ts | 2 +- tracker/tracker-assist/layout/index.html | 24 +++++++++---------- .../src/ConfirmWindow/ConfirmWindow.ts | 4 +++- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/frontend/app/player/Player.ts b/frontend/app/player/Player.ts index db1a20dde..870c5046e 100644 --- a/frontend/app/player/Player.ts +++ b/frontend/app/player/Player.ts @@ -93,7 +93,7 @@ export default class Player extends MessageDistributor { let time = prevTime + diffTime; - const skipInterval = skip && skipIntervals.find((si: Node) => si.contains(time)); // TODO: good skip by messages + const skipInterval = !live && skip && skipIntervals.find((si: Node) => si.contains(time)); // TODO: good skip by messages if (skipInterval) time = skipInterval.end; const fmt = super.getFirstMessageTime(); diff --git a/tracker/tracker-assist/layout/index.html b/tracker/tracker-assist/layout/index.html index e541fc1e3..ef87c6b06 100644 --- a/tracker/tracker-assist/layout/index.html +++ b/tracker/tracker-assist/layout/index.html @@ -350,11 +350,11 @@ } - + - - - + + +
The agent is requesting remote control
@@ -380,7 +380,7 @@
@@ -394,7 +394,7 @@
- +
@@ -419,8 +419,8 @@ - - + + - +
- +
@@ -484,7 +484,7 @@
- + - \ No newline at end of file + diff --git a/tracker/tracker-assist/src/ConfirmWindow/ConfirmWindow.ts b/tracker/tracker-assist/src/ConfirmWindow/ConfirmWindow.ts index 4de359ac9..fc5e9c53c 100644 --- a/tracker/tracker-assist/src/ConfirmWindow/ConfirmWindow.ts +++ b/tracker/tracker-assist/src/ConfirmWindow/ConfirmWindow.ts @@ -44,7 +44,7 @@ function makeButton(options: ButtonOptions, defaultStyle?: Properties): HTMLButt } export default class ConfirmWindow { - private wrapper: HTMLDivElement; + private readonly wrapper: HTMLDivElement; constructor(options: ConfirmWindowOptions) { const wrapper = document.createElement('div') @@ -107,6 +107,8 @@ export default class ConfirmWindow { }) wrapper.appendChild(popup) + + wrapper.setAttribute('data-openreplay-hidden', '') this.wrapper = wrapper confirmBtn.onclick = () => {