@@ -378,6 +378,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
378378
379379 RundownViewEventBus . on ( RundownViewEvents . GO_TO_LIVE_SEGMENT , this . onGoToLiveSegment )
380380 RundownViewEventBus . on ( RundownViewEvents . GO_TO_TOP , this . onGoToTop )
381+ RundownViewEventBus . on ( RundownViewEvents . CLOSE_NOTIFICATIONS , this . onCloseNotifications )
381382
382383 if ( this . props . playlist ) {
383384 documentTitle . set ( this . props . playlist . name )
@@ -621,6 +622,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
621622
622623 RundownViewEventBus . off ( RundownViewEvents . GO_TO_LIVE_SEGMENT , this . onGoToLiveSegment )
623624 RundownViewEventBus . off ( RundownViewEvents . GO_TO_TOP , this . onGoToTop )
625+ RundownViewEventBus . off ( RundownViewEvents . CLOSE_NOTIFICATIONS , this . onCloseNotifications )
624626 }
625627
626628 private onBeforeUnload = ( e : any ) => {
@@ -904,6 +906,12 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
904906 )
905907 }
906908
909+ private onCloseNotifications = ( ) => {
910+ this . setState ( {
911+ isNotificationsCenterOpen : undefined ,
912+ } )
913+ }
914+
907915 private onToggleSupportPanel = ( ) => {
908916 this . setState ( {
909917 isSupportPanelOpen : ! this . state . isSupportPanelOpen ,
@@ -1369,6 +1377,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
13691377 >
13701378 < SelectedElementsContext . Consumer >
13711379 { ( selectionContext ) => {
1380+ const isPropertiesPanelOpen = selectionContext . listSelectedElements ( ) . length > 0
13721381 return (
13731382 < div
13741383 className = { classNames ( 'rundown-view' , {
@@ -1461,13 +1470,13 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
14611470 </ ErrorBoundary >
14621471 < ErrorBoundary >
14631472 < AnimatePresence >
1464- { this . state . isNotificationsCenterOpen && (
1473+ { ! isPropertiesPanelOpen && this . state . isNotificationsCenterOpen && (
14651474 < NotificationCenterPanel
14661475 filter = { this . state . isNotificationsCenterOpen }
14671476 hideRundownHeader = { this . props . hideRundownHeader }
14681477 />
14691478 ) }
1470- { ! this . state . isNotificationsCenterOpen && selectionContext . listSelectedElements ( ) . length > 0 && (
1479+ { isPropertiesPanelOpen && (
14711480 < div >
14721481 < PropertiesPanel />
14731482 </ div >
@@ -1518,7 +1527,10 @@ const RundownViewContent = translateWithTracker<IPropsWithReady & ITrackedProps,
15181527 onQueueNextSegment = { this . onQueueNextSegment }
15191528 onSetQuickLoopStart = { this . onSetQuickLoopStart }
15201529 onSetQuickLoopEnd = { this . onSetQuickLoopEnd }
1521- onEditProps = { ( selection ) => selectionContext . clearAndSetSelection ( selection ) }
1530+ onEditProps = { ( selection ) => {
1531+ this . setState ( { isNotificationsCenterOpen : undefined } )
1532+ selectionContext . clearAndSetSelection ( selection )
1533+ } }
15221534 studioMode = { this . props . userPermissions . studio }
15231535 enablePlayFromAnywhere = { ! ! studio . settings . enablePlayFromAnywhere }
15241536 enableQuickLoop = { ! ! studio . settings . enableQuickLoop }
0 commit comments