feat(gpu-service): restrict non-stopped instance edit, drop recreate
- non-stopped edit: only displayName and SSH public keys editable; type/template/storage sections disabled (stopped edit keeps all editable) - remove recreate feature and the realAction prop it required: entry, delete-then-create submit path, warning banner, locale keys
This commit is contained in:
@@ -23,8 +23,8 @@ export const buildInstanceTypeSnapshotSpec = (
|
||||
|
||||
// Serialize the chosen instance type into the instance's `description` field —
|
||||
// a persisted spec snapshot the form reads back to render the type card and
|
||||
// derive unit resources. Shared by the create/recreate flow (card selection)
|
||||
// and the edit flow (change-type overlay).
|
||||
// derive unit resources. Shared by the create flow (card selection) and the
|
||||
// edit flow (change-type overlay).
|
||||
export const saveInstanceDataInDescription = (
|
||||
instanceType: InstanceTypeItem
|
||||
): string => {
|
||||
|
||||
Reference in New Issue
Block a user