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,28 +63,32 @@ export const TreeControls: React.FC = () => {
|
||||
{isPaused ? <PlayCircleOutlined /> : <PauseCircleOutlined />}
|
||||
</Tooltip>
|
||||
}></Button>
|
||||
<Button
|
||||
type="default"
|
||||
shape="circle"
|
||||
onClick={() => {
|
||||
setShowFrameworkEventsModal(true);
|
||||
}}
|
||||
icon={
|
||||
<Tooltip title="Framework event monitoring">
|
||||
<EyeOutlined />
|
||||
</Tooltip>
|
||||
}></Button>
|
||||
{frameworkEventMonitoring.size > 0 && (
|
||||
<FrameworkEventsMonitoringModal
|
||||
filterMainThreadMonitoring={filterMainThreadMonitoring}
|
||||
onSetFilterMainThreadMonitoring={
|
||||
instance.uiActions.onSetFilterMainThreadMonitoring
|
||||
}
|
||||
frameworkEventTypes={[...frameworkEventMonitoring.entries()]}
|
||||
onSetEventMonitored={instance.uiActions.onSetFrameworkEventMonitored}
|
||||
visible={showFrameworkEventsModal}
|
||||
onCancel={() => setShowFrameworkEventsModal(false)}
|
||||
/>
|
||||
<>
|
||||
<Button
|
||||
type="default"
|
||||
shape="circle"
|
||||
onClick={() => {
|
||||
setShowFrameworkEventsModal(true);
|
||||
}}
|
||||
icon={
|
||||
<Tooltip title="Framework event monitoring">
|
||||
<EyeOutlined />
|
||||
</Tooltip>
|
||||
}></Button>
|
||||
<FrameworkEventsMonitoringModal
|
||||
filterMainThreadMonitoring={filterMainThreadMonitoring}
|
||||
onSetFilterMainThreadMonitoring={
|
||||
instance.uiActions.onSetFilterMainThreadMonitoring
|
||||
}
|
||||
frameworkEventTypes={[...frameworkEventMonitoring.entries()]}
|
||||
onSetEventMonitored={
|
||||
instance.uiActions.onSetFrameworkEventMonitored
|
||||
}
|
||||
visible={showFrameworkEventsModal}
|
||||
onCancel={() => setShowFrameworkEventsModal(false)}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</Layout.Horizontal>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user