Skip to content

Commit 1ee373c

Browse files
olzzonjustandras
authored andcommitted
feat: Set here as next
1 parent 24b7c79 commit 1ee373c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/webui/src/client/ui/SegmentTimeline/SegmentContextMenu.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ export const SegmentContextMenu = withTranslation()(
132132
</MenuItem>
133133
{startsAt !== null && part && this.props.enablePlayFromAnywhere ? (
134134
<>
135-
{/* <MenuItem
135+
<MenuItem
136136
onClick={(e) => this.onSetAsNextFromHere(part.instance.part, e)}
137137
disabled={isCurrentPart || !!part.instance.orphaned || !canSetAsNext}
138138
>
139139
<span dangerouslySetInnerHTML={{ __html: t('Set <strong>Next</strong> Here') }}></span> (
140140
{RundownUtils.formatTimeToShortTime(Math.floor((startsAt + timecode) / 1000) * 1000)})
141-
</MenuItem> */}
141+
</MenuItem>
142142
<MenuItem
143143
onClick={(e) => this.onPlayFromHere(part.instance.part, e)}
144144
disabled={!!part.instance.orphaned || !canSetAsNext}
@@ -252,10 +252,10 @@ export const SegmentContextMenu = withTranslation()(
252252
}
253253
}
254254

255-
// private onSetAsNextFromHere = (part: DBPart, e) => {
256-
// const offset = this.getTimePosition()
257-
// this.props.onSetNext(part, e, offset || 0)
258-
// }
255+
private onSetAsNextFromHere = (part: DBPart, e) => {
256+
const offset = this.getTimePosition()
257+
this.props.onSetNext(part, e, offset || 0)
258+
}
259259

260260
private onPlayFromHere = (part: DBPart, e: React.MouseEvent | React.TouchEvent) => {
261261
const offset = this.getTimePosition()

0 commit comments

Comments
 (0)