fix: update delete confirmation dialog to show correct resource type and name

This commit is contained in:
loveuer
2025-11-13 15:32:40 +08:00
parent 0536ce9755
commit 7a666303be

View File

@@ -884,7 +884,8 @@ export default function K8sResourceList() {
<DialogTitle></DialogTitle>
<DialogContent>
<Typography>
Pod <strong>{deleteTarget?.name}</strong> (namespace: {deleteTarget?.namespace})
{selectedKind.label} <strong>{deleteTarget?.name}</strong>
{deleteTarget?.namespace && selectedKind.key !== 'namespace' ? ` (namespace: ${deleteTarget?.namespace})` : ''}
</Typography>
</DialogContent>
<DialogActions>