This is an automated email from the ASF dual-hosted git repository. wu-sheng pushed a commit to branch refactor/decompose-large-files in repository https://gitbox.apache.org/repos/asf/skywalking-horizon-ui.git
commit abe383f64e78c65e37aae558720dd5a95f9fa1d7 Author: Wu Sheng <[email protected]> AuthorDate: Sat Jun 27 00:05:20 2026 +0800 fix(profiling): Escape closes the network New Task modal --- apps/ui/src/layer/profiling/LayerNetworkProfilingView.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ui/src/layer/profiling/LayerNetworkProfilingView.vue b/apps/ui/src/layer/profiling/LayerNetworkProfilingView.vue index 47cca91..fdfef08 100644 --- a/apps/ui/src/layer/profiling/LayerNetworkProfilingView.vue +++ b/apps/ui/src/layer/profiling/LayerNetworkProfilingView.vue @@ -32,6 +32,7 @@ --> <script setup lang="ts"> import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'; +import { useEscapeToClose } from '@/components/primitives/useEscapeToClose'; import { useRoute } from 'vue-router'; import { useLayerInstances } from '@/layer/useLayerInstances'; import { useSelectedService } from '@/layer/useSelectedService'; @@ -289,6 +290,7 @@ onBeforeUnmount(() => window.removeEventListener('keydown', onEdgeKeydown)); // ── New task modal ──────────────────────────────────────────────── const showNewTask = ref(false); +useEscapeToClose(() => showNewTask.value, () => (showNewTask.value = false)); const newTaskError = ref<string | null>(null); const { polling, pollRound, pollForNewTask } = useNewTaskPoll(); // OAP's `EBPFNetworkDataCollectingSettings.requireCompleteRequest` and
