fix: gpu instance always show delete, dedupe params

This commit is contained in:
jialin
2026-06-09 19:01:32 +08:00
committed by jialin
parent ac800a303a
commit a2e9f69b96
5 changed files with 40 additions and 15 deletions
@@ -24,7 +24,6 @@ const InstanceTypeCell: React.FC<{
}> = ({ title, name, sections }) => {
const specInfo = (
<div style={{ minWidth: 200 }}>
{name && <div style={{ fontWeight: 600, marginBottom: 8 }}>{name}</div>}
{sections.map((sec) => {
const rows = sec.rows.filter(([, v]) => v && v !== '-');
if (!rows.length) return null;
@@ -153,11 +153,7 @@ export const rowActionList: InstanceRowAction[] = [
icon: icons.DeleteOutlined,
show: (record: ListItem) => {
const phase = record.status?.phase;
return [
...GPUStackFailedStatuses,
InstanceStatusValueMap.Ready,
InstanceStatusValueMap.Unknown
].includes(phase as string);
return true;
},
props: {
danger: true