fix: gpu instance always show delete, dedupe params
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user