@@ -45,7 +45,6 @@ if (localStorage.getItem('dangerConfirm') === null) {
4545}
4646
4747type MemoryUnit = 'MB' | 'GB' ;
48- type DiskType = 'virtio-pci' | 'nvme' ;
4948
5049type JsonRpcCall = ( method : string , params ?: Record < string , unknown > ) => Promise < Response > ;
5150type Ref < T > = { value : T } ;
@@ -89,7 +88,6 @@ type VmFormState = {
8988 swapValue : number ;
9089 swapUnit : MemoryUnit ;
9190 disk_size : number ;
92- disk_type : DiskType ;
9391 selectedGpus : string [ ] ;
9492 attachAllGpus : boolean ;
9593 ports : PortFormEntry [ ] ;
@@ -127,7 +125,6 @@ type UpdateDialogState = {
127125 swapValue : number ;
128126 swapUnit : MemoryUnit ;
129127 disk_size : number ;
130- disk_type : DiskType ;
131128 image : string ;
132129 ports : PortFormEntry [ ] ;
133130 attachAllGpus : boolean ;
@@ -144,7 +141,6 @@ type CloneConfigDialogState = {
144141 vcpu : number ;
145142 memory : number ;
146143 disk_size : number ;
147- disk_type : DiskType ;
148144 ports : PortFormEntry [ ] ;
149145 user_config : string ;
150146 gpus ?: VmmTypes . IGpuConfig ;
@@ -171,7 +167,6 @@ function createVmFormState(preLaunchScript: string): VmFormState {
171167 swapValue : 0 ,
172168 swapUnit : 'GB' ,
173169 disk_size : 20 ,
174- disk_type : 'virtio-pci' ,
175170 selectedGpus : [ ] ,
176171 attachAllGpus : false ,
177172 ports : [ ] ,
@@ -211,7 +206,6 @@ function createUpdateDialogState(): UpdateDialogState {
211206 swapValue : 0 ,
212207 swapUnit : 'GB' ,
213208 disk_size : 0 ,
214- disk_type : 'virtio-pci' ,
215209 image : '' ,
216210 ports : [ ] ,
217211 attachAllGpus : false ,
@@ -230,7 +224,6 @@ function createCloneConfigDialogState(): CloneConfigDialogState {
230224 vcpu : 0 ,
231225 memory : 0 ,
232226 disk_size : 0 ,
233- disk_type : 'virtio-pci' ,
234227 ports : [ ] ,
235228 user_config : '' ,
236229 gpus : undefined ,
413406 vcpu : number ;
414407 memory : number ;
415408 disk_size : number ;
416- disk_type : DiskType ;
417409 ports : PortFormEntry [ ] ;
418410 encrypted_env ?: Uint8Array ;
419411 app_id ?: string | null ;
435427 vcpu : Math . max ( 1 , Number ( source . vcpu ) || 1 ) ,
436428 memory : Math . max ( 0 , Number ( source . memory ) || 0 ) ,
437429 disk_size : Math . max ( 0 , Number ( source . disk_size ) || 0 ) ,
438- disk_type : source . disk_type || 'virtio-pci' ,
439430 ports : normalizedPorts ,
440431 encrypted_env : source . encrypted_env ,
441432 app_id : source . app_id || undefined ,
836827 vmForm . value . swapValue = 0 ;
837828 vmForm . value . swapUnit = 'GB' ;
838829 vmForm . value . swap_size = 0 ;
839- vmForm . value . disk_type = 'virtio-pci' ;
840830 loadGpus ( ) ;
841831 }
842832
866856 swapValue : swapDisplay . memoryValue ,
867857 swapUnit : swapDisplay . memoryUnit ,
868858 disk_size : config . disk_size || 0 ,
869- disk_type : ( config . disk_type as DiskType ) || 'virtio-pci' ,
870859 image : config . image || '' ,
871860 ports : clonePortMappings ( config . ports || [ ] ) ,
872861 attachAllGpus : gpuSelection . attachAll ,
957946 vcpu : vmForm . value . vcpu ,
958947 memory : vmForm . value . memory ,
959948 disk_size : vmForm . value . disk_size ,
960- disk_type : vmForm . value . disk_type ,
961949 ports : vmForm . value . ports ,
962950 encrypted_env : encryptedEnv || undefined ,
963951 app_id : vmForm . value . app_id || undefined ,
10861074 swapValue : autoMemoryDisplay ( bytesToMB ( theVm . appCompose ?. swap_size || 0 ) ) . memoryValue ,
10871075 swapUnit : autoMemoryDisplay ( bytesToMB ( theVm . appCompose ?. swap_size || 0 ) ) . memoryUnit ,
10881076 disk_size : config . disk_size || 0 ,
1089- disk_type : ( config . disk_type as DiskType ) || 'virtio-pci' ,
10901077 selectedGpus : [ ] ,
10911078 attachAllGpus : false ,
10921079 encryptedEnvs : [ ] , // Clear environment variables
11261113 vcpu : source . vcpu ,
11271114 memory : source . memory ,
11281115 disk_size : source . disk_size ,
1129- disk_type : source . disk_type ,
11301116 ports : source . ports ,
11311117 encrypted_env : source . encrypted_env ,
11321118 app_id : source . app_id ,
0 commit comments