Skip to content

Commit

Permalink
comment out "ongoing" requirement to facilitate testing
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Dec 16, 2024
1 parent 72eaae1 commit 8872b50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/controllers/RelayRound.scala
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ final class RelayRound(
case VideoEmbed.PinnedStream =>
fuccess:
rt.tour.pinnedStream
.ifFalse(rt.round.isFinished)
// the below line commented out for testy purposes
// .ifFalse(rt.round.isFinished)
.flatMap(_.upstream)
.map(_.urls(netDomain).toPair)
case _ => fuccess(none)
Expand Down
5 changes: 2 additions & 3 deletions ui/analyse/css/study/relay/_video-player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,15 @@
margin: auto;
pointer-events: none;
border-radius: 5px;
border: 1px solid #888;
padding: 5px;
text-align: center;
line-height: normal;
opacity: 0;
color: #222e;
background-color: #dddd;
}
&:hover:not(:has(.video-player-close:hover)) {
.play-button,
.text div {
.play-button {
opacity: 1;
}
}
Expand Down
3 changes: 2 additions & 1 deletion ui/analyse/src/study/relay/relayCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ export default class RelayCtrl {

isPinnedStreamOngoing = () => {
if (!this.data.pinned) return false;
if (this.currentRound().finished) return false;
// the below line commented out for testy purposes
//if (this.currentRound().finished) return false;
if (Date.now() < this.currentRound().startsAt! - 1000 * 3600) return false;
return true;
};
Expand Down

0 comments on commit 8872b50

Please sign in to comment.