fix: update delete confirmation dialog to show correct resource type and name
This commit is contained in:
@@ -884,7 +884,8 @@ export default function K8sResourceList() {
|
|||||||
<DialogTitle>确认删除</DialogTitle>
|
<DialogTitle>确认删除</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<Typography>
|
<Typography>
|
||||||
确定要删除 Pod <strong>{deleteTarget?.name}</strong> (namespace: {deleteTarget?.namespace}) 吗?
|
确定要删除 {selectedKind.label} <strong>{deleteTarget?.name}</strong>
|
||||||
|
{deleteTarget?.namespace && selectedKind.key !== 'namespace' ? ` (namespace: ${deleteTarget?.namespace})` : ''} 吗?
|
||||||
</Typography>
|
</Typography>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
|||||||
Reference in New Issue
Block a user