@@ -379,6 +379,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
379379
380380 RundownViewEventBus . on ( RundownViewEvents . GO_TO_LIVE_SEGMENT , this . onGoToLiveSegment )
381381 RundownViewEventBus . on ( RundownViewEvents . GO_TO_TOP , this . onGoToTop )
382+ RundownViewEventBus . on ( RundownViewEvents . CLOSE_NOTIFICATIONS , this . onCloseNotifications )
382383
383384 if ( this . props . playlist ) {
384385 documentTitle . set ( this . props . playlist . name )
@@ -622,6 +623,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
622623
623624 RundownViewEventBus . off ( RundownViewEvents . GO_TO_LIVE_SEGMENT , this . onGoToLiveSegment )
624625 RundownViewEventBus . off ( RundownViewEvents . GO_TO_TOP , this . onGoToTop )
626+ RundownViewEventBus . off ( RundownViewEvents . CLOSE_NOTIFICATIONS , this . onCloseNotifications )
625627 }
626628
627629 private onBeforeUnload = ( e : any ) => {
@@ -905,6 +907,12 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
905907 )
906908 }
907909
910+ private onCloseNotifications = ( ) => {
911+ this . setState ( {
912+ isNotificationsCenterOpen : undefined ,
913+ } )
914+ }
915+
908916 private onToggleSupportPanel = ( ) => {
909917 this . setState ( {
910918 isSupportPanelOpen : ! this . state . isSupportPanelOpen ,
@@ -1371,6 +1379,8 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
13711379 < DragContextProvider t = { t } >
13721380 < SelectedElementsContext . Consumer >
13731381 { ( selectionContext ) => {
1382+ const isPropertiesPanelOpen = selectionContext . listSelectedElements ( ) . length > 0
1383+
13741384 return (
13751385 < div
13761386 className = { classNames ( 'rundown-view' , {
@@ -1463,13 +1473,14 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
14631473 </ ErrorBoundary >
14641474 < ErrorBoundary >
14651475 < AnimatePresence >
1466- { this . state . isNotificationsCenterOpen && (
1476+ { ! isPropertiesPanelOpen && this . state . isNotificationsCenterOpen && (
14671477 < NotificationCenterPanel
14681478 filter = { this . state . isNotificationsCenterOpen }
14691479 hideRundownHeader = { this . props . hideRundownHeader }
14701480 />
14711481 ) }
1472- { ! this . state . isNotificationsCenterOpen &&
1482+ { isPropertiesPanelOpen &&
1483+ ! this . state . isNotificationsCenterOpen &&
14731484 selectionContext . listSelectedElements ( ) . length > 0 && (
14741485 < div >
14751486 < PropertiesPanel />
@@ -1521,7 +1532,10 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
15211532 onQueueNextSegment = { this . onQueueNextSegment }
15221533 onSetQuickLoopStart = { this . onSetQuickLoopStart }
15231534 onSetQuickLoopEnd = { this . onSetQuickLoopEnd }
1524- onEditProps = { ( selection ) => selectionContext . clearAndSetSelection ( selection ) }
1535+ onEditProps = { ( selection ) => {
1536+ this . setState ( { isNotificationsCenterOpen : undefined } )
1537+ selectionContext . clearAndSetSelection ( selection )
1538+ } }
15251539 studioMode = { this . props . userPermissions . studio }
15261540 enablePlayFromAnywhere = { ! ! studio . settings . enablePlayFromAnywhere }
15271541 enableQuickLoop = { ! ! studio . settings . enableQuickLoop }
0 commit comments