ONly show framework event monitoring where there are events
Reviewed By: antonk52 Differential Revision: D47757004 fbshipit-source-id: 44e0e6aff0213d3bf684652906abae28777cfe9e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
aba50889f2
commit
c1a99a8a52
@@ -63,6 +63,8 @@ export const TreeControls: React.FC = () => {
|
|||||||
{isPaused ? <PlayCircleOutlined /> : <PauseCircleOutlined />}
|
{isPaused ? <PlayCircleOutlined /> : <PauseCircleOutlined />}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}></Button>
|
}></Button>
|
||||||
|
{frameworkEventMonitoring.size > 0 && (
|
||||||
|
<>
|
||||||
<Button
|
<Button
|
||||||
type="default"
|
type="default"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
@@ -74,17 +76,19 @@ export const TreeControls: React.FC = () => {
|
|||||||
<EyeOutlined />
|
<EyeOutlined />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}></Button>
|
}></Button>
|
||||||
{frameworkEventMonitoring.size > 0 && (
|
|
||||||
<FrameworkEventsMonitoringModal
|
<FrameworkEventsMonitoringModal
|
||||||
filterMainThreadMonitoring={filterMainThreadMonitoring}
|
filterMainThreadMonitoring={filterMainThreadMonitoring}
|
||||||
onSetFilterMainThreadMonitoring={
|
onSetFilterMainThreadMonitoring={
|
||||||
instance.uiActions.onSetFilterMainThreadMonitoring
|
instance.uiActions.onSetFilterMainThreadMonitoring
|
||||||
}
|
}
|
||||||
frameworkEventTypes={[...frameworkEventMonitoring.entries()]}
|
frameworkEventTypes={[...frameworkEventMonitoring.entries()]}
|
||||||
onSetEventMonitored={instance.uiActions.onSetFrameworkEventMonitored}
|
onSetEventMonitored={
|
||||||
|
instance.uiActions.onSetFrameworkEventMonitored
|
||||||
|
}
|
||||||
visible={showFrameworkEventsModal}
|
visible={showFrameworkEventsModal}
|
||||||
onCancel={() => setShowFrameworkEventsModal(false)}
|
onCancel={() => setShowFrameworkEventsModal(false)}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user