Skip to content

Commit

Permalink
Revert "chore: revert countdown in top bar to part time"
Browse files Browse the repository at this point in the history
This reverts commit 5b12e59.
  • Loading branch information
PeterC89 committed Oct 17, 2024
1 parent 17d344b commit 8706d18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/webui/src/client/ui/RundownView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ const TimingDisplay = withTranslation()(
<CurrentPartOrSegmentRemaining
currentPartInstanceId={rundownPlaylist.currentPartInfo.partInstanceId}
heavyClassName="overtime"
forceToPartTimer={true}
/>
<AutoNextStatus />
{rundownPlaylist.holdState && rundownPlaylist.holdState !== RundownHoldState.COMPLETE ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ interface IPartRemainingProps {
heavyClassName?: string
speaking?: boolean
vibrating?: boolean
/** This component will show the remaining segment budget when that is available, but in some places in the UI we want it to force it to show remaining Part regardless */
forceToPartTimer?: boolean
}

// global variable for remembering last uttered displayTime
Expand All @@ -39,7 +37,6 @@ export const CurrentPartOrSegmentRemaining = withTiming<IPartRemainingProps, {}>
let displayTimecode =
this.props.timingDurations.remainingBudgetOnCurrentSegment ??
this.props.timingDurations.remainingTimeOnCurrentPart
if (this.props.forceToPartTimer) displayTimecode = this.props.timingDurations.remainingTimeOnCurrentPart
if (displayTimecode === undefined) return null
displayTimecode *= -1
return (
Expand Down

0 comments on commit 8706d18

Please sign in to comment.