@@ -17,6 +17,7 @@ import { MongoFieldSpecifierOnes } from '@sofie-automation/corelib/dist/mongo'
1717import { PartInstance } from '@sofie-automation/meteor-lib/dist/collections/PartInstances'
1818import { CorelibPubSub } from '@sofie-automation/corelib/dist/pubsub'
1919import { UIPartInstances , UIParts } from '../Collections'
20+ import { RundownViewShelf } from '../RundownView/RundownViewShelf'
2021
2122export const LIVELINE_HISTORY_SIZE = TIMELINE_LIVELINE_HISTORY_SIZE
2223
@@ -201,36 +202,50 @@ export const SegmentStoryboardContainer = withResolvedSegment<IProps>(function S
201202 }
202203
203204 return (
204- < SegmentStoryboard
205- id = { props . id }
206- ref = { segmentRef }
207- key = { unprotectString ( props . segmentui . _id ) }
208- segment = { props . segmentui }
209- studio = { props . studio }
210- parts = { props . parts }
211- segmentNoteCounts = { props . segmentNoteCounts }
212- onItemClick = { props . onPieceClick }
213- onItemDoubleClick = { props . onPieceDoubleClick }
214- playlist = { props . playlist }
215- isLiveSegment = { isLiveSegment }
216- isNextSegment = { isNextSegment }
217- isQueuedSegment = { props . playlist . queuedSegmentId === props . segmentui . _id }
218- hasRemoteItems = { props . hasRemoteItems }
219- hasGuestItems = { props . hasGuestItems }
220- currentPartWillAutoNext = { currentPartWillAutoNext }
221- hasAlreadyPlayed = { props . hasAlreadyPlayed }
222- followLiveLine = { props . followLiveSegments }
223- liveLineHistorySize = { LIVELINE_HISTORY_SIZE }
224- displayLiveLineCounter = { props . displayLiveLineCounter }
225- onContextMenu = { props . onContextMenu }
226- onScroll = { onScroll }
227- isLastSegment = { props . isLastSegment }
228- lastValidPartIndex = { props . lastValidPartIndex }
229- onHeaderNoteClick = { props . onHeaderNoteClick }
230- onSwitchViewMode = { props . onSwitchViewMode }
231- showCountdownToSegment = { props . showCountdownToSegment }
232- fixedSegmentDuration = { props . fixedSegmentDuration }
233- subscriptionsReady = { initialSubscriptionsReady }
234- />
205+ < >
206+ < SegmentStoryboard
207+ id = { props . id }
208+ ref = { segmentRef }
209+ key = { unprotectString ( props . segmentui . _id ) }
210+ segment = { props . segmentui }
211+ studio = { props . studio }
212+ parts = { props . parts }
213+ segmentNoteCounts = { props . segmentNoteCounts }
214+ onItemClick = { props . onPieceClick }
215+ onItemDoubleClick = { props . onPieceDoubleClick }
216+ playlist = { props . playlist }
217+ isLiveSegment = { isLiveSegment }
218+ isNextSegment = { isNextSegment }
219+ isQueuedSegment = { props . playlist . queuedSegmentId === props . segmentui . _id }
220+ hasRemoteItems = { props . hasRemoteItems }
221+ hasGuestItems = { props . hasGuestItems }
222+ currentPartWillAutoNext = { currentPartWillAutoNext }
223+ hasAlreadyPlayed = { props . hasAlreadyPlayed }
224+ followLiveLine = { props . followLiveSegments }
225+ liveLineHistorySize = { LIVELINE_HISTORY_SIZE }
226+ displayLiveLineCounter = { props . displayLiveLineCounter }
227+ onContextMenu = { props . onContextMenu }
228+ onScroll = { onScroll }
229+ isLastSegment = { props . isLastSegment }
230+ lastValidPartIndex = { props . lastValidPartIndex }
231+ onHeaderNoteClick = { props . onHeaderNoteClick }
232+ onSwitchViewMode = { props . onSwitchViewMode }
233+ showCountdownToSegment = { props . showCountdownToSegment }
234+ fixedSegmentDuration = { props . fixedSegmentDuration }
235+ subscriptionsReady = { initialSubscriptionsReady }
236+ />
237+ { props . segmentui . showShelf && props . adLibSegmentUi && (
238+ < RundownViewShelf
239+ studio = { props . studio }
240+ segment = { props . segmentui }
241+ playlist = { props . playlist }
242+ showStyleBase = { props . showStyleBase }
243+ adLibSegmentUi = { props . adLibSegmentUi }
244+ hotkeyGroup = { unprotectString ( props . segmentui . _id ) + '_RundownViewShelf' }
245+ miniShelfFilter = { props . miniShelfFilter }
246+ studioMode = { props . studioMode }
247+ />
248+ ) }
249+ </ >
235250 )
236251} )
0 commit comments