From 7a666303bec8a47b0135c69ca430d5beb3b6e4d2 Mon Sep 17 00:00:00 2001 From: loveuer Date: Thu, 13 Nov 2025 15:32:40 +0800 Subject: [PATCH] fix: update delete confirmation dialog to show correct resource type and name --- frontend/src/pages/K8sResourceList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/K8sResourceList.tsx b/frontend/src/pages/K8sResourceList.tsx index c635edd..8700951 100644 --- a/frontend/src/pages/K8sResourceList.tsx +++ b/frontend/src/pages/K8sResourceList.tsx @@ -884,7 +884,8 @@ export default function K8sResourceList() { 确认删除 - 确定要删除 Pod {deleteTarget?.name} (namespace: {deleteTarget?.namespace}) 吗? + 确定要删除 {selectedKind.label} {deleteTarget?.name} + {deleteTarget?.namespace && selectedKind.key !== 'namespace' ? ` (namespace: ${deleteTarget?.namespace})` : ''} 吗?