bfg-common 1.2.175 → 1.2.176

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -351,10 +351,21 @@ watch(
351
351
  reservation.value = '' + newValue.reservation_mhz
352
352
  limit.value = '' + newValue.limit_mhz
353
353
  shares.value = '' + newValue.shares
354
- cpuModel.value =
355
- props.cpuModels.find(
356
- (model) => model.value.substr(4) === props.cpu?.model
357
- )?.value || cpuModel.value
354
+
355
+ switch (newValue.model) {
356
+ case 'host-passthrough':
357
+ passthroughHostCpu.value = true
358
+ cpuModel.value = ''
359
+ break
360
+ case 'host-model':
361
+ hostModelCpu.value = true
362
+ cpuModel.value = ''
363
+ break
364
+ default:
365
+ cpuModel.value =
366
+ props.cpuModels.find((model) => model.value === newValue.model)
367
+ ?.value || cpuModel.value
368
+ }
358
369
  },
359
370
  { immediate: true }
360
371
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.175",
4
+ "version": "1.2.176",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",