diff --git a/desktop/plugins/public/ui-debugger/components/Controls.tsx b/desktop/plugins/public/ui-debugger/components/Controls.tsx
index 93aed82e2..e2b27c3d9 100644
--- a/desktop/plugins/public/ui-debugger/components/Controls.tsx
+++ b/desktop/plugins/public/ui-debugger/components/Controls.tsx
@@ -14,15 +14,13 @@ import {
Input,
Modal,
Tooltip,
- Dropdown,
- Menu,
Typography,
TreeSelect,
Space,
Switch,
} from 'antd';
import {
- MoreOutlined,
+ EyeOutlined,
PauseCircleOutlined,
PlayCircleOutlined,
SearchOutlined,
@@ -48,6 +46,9 @@ export const Controls: React.FC = () => {
instance.uiState.frameworkEventMonitoring,
);
+ const [showFrameworkEventsModal, setShowFrameworkEventsModal] =
+ useState(false);
+
const onSetEventMonitored: (
eventType: FrameworkEventType,
monitored: boolean,
@@ -83,72 +84,33 @@ export const Controls: React.FC = () => {
{isPaused ? : }
}>
+
{frameworkEventMonitoring.size > 0 && (
- setShowFrameworkEventsModal(false)}
/>
)}
);
};
-function MoreOptionsMenu({
- onSetEventMonitored,
- frameworkEventTypes,
- filterMainThreadMonitoring,
- onSetFilterMainThreadMonitoring,
-}: {
- filterMainThreadMonitoring: boolean;
- onSetFilterMainThreadMonitoring: (toggled: boolean) => void;
- onSetEventMonitored: (
- eventType: FrameworkEventType,
- monitored: boolean,
- ) => void;
- frameworkEventTypes: [FrameworkEventType, boolean][];
-}) {
- const [showFrameworkEventsModal, setShowFrameworkEventsModal] =
- useState(false);
-
- const moreOptionsMenu = (
-
- );
-
- return (
- <>
-
- } />
-
-
- {/*invisible until shown*/}
- setShowFrameworkEventsModal(false)}
- />
- >
- );
-}
-
function FrameworkEventsMonitoringModal({
visible,
onCancel,
@@ -184,15 +146,15 @@ function FrameworkEventsMonitoringModal({
Monitoring an event will cause the relevant node in the visualizer and
- tree to highlight briefly. Additionally a running total of the number
- of each event will be show in the tree inline
+ tree to highlight briefly. Additionally counter will show the number
+ of matching events in the tree