bfg-common 1.4.71 → 1.4.72
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.
- package/components/common/vm/actions/clone/Clone.vue +522 -511
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +13 -15
- package/components/common/vm/actions/common/select/lib/models/interfaces.ts +0 -1
- package/components/common/vm/actions/editSettings/EditSettings.vue +327 -316
- package/package.json +1 -1
|
@@ -92,21 +92,6 @@ const emits = defineEmits<{
|
|
|
92
92
|
|
|
93
93
|
const helpId = ref<string>(`bus-field-help-icon${useUniqueId()}`)
|
|
94
94
|
|
|
95
|
-
const busOptions = ref<UI_I_OptionItem[]>([])
|
|
96
|
-
watch(
|
|
97
|
-
() => props.guestMachineType,
|
|
98
|
-
() => {
|
|
99
|
-
console.log(capabilities.bus, 111, props.guestMachineType)
|
|
100
|
-
if (props.guestMachineType) {
|
|
101
|
-
console.log(222, props.guestMachineType.value)
|
|
102
|
-
busOptions.value = capabilities.bus[props.guestMachineType.value]
|
|
103
|
-
const hasSelected = busOptions.value.some(option => option.value === busLocal.value)
|
|
104
|
-
if (!hasSelected) busLocal.value = busOptions.value[0].value
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{ immediate: true, deep: true }
|
|
108
|
-
)
|
|
109
|
-
|
|
110
95
|
const busLocal = computed<string>({
|
|
111
96
|
get() {
|
|
112
97
|
return props.bus
|
|
@@ -115,6 +100,19 @@ const busLocal = computed<string>({
|
|
|
115
100
|
emits('update:bus', newValue)
|
|
116
101
|
},
|
|
117
102
|
})
|
|
103
|
+
const busOptions = ref<UI_I_OptionItem[]>([])
|
|
104
|
+
watch(
|
|
105
|
+
() => props.guestMachineType,
|
|
106
|
+
() => {
|
|
107
|
+
if (props.guestMachineType) {
|
|
108
|
+
busOptions.value = capabilities.bus[props.guestMachineType.value]
|
|
109
|
+
|
|
110
|
+
const hasSelected = busOptions.value.some(option => option.value === busLocal.value)
|
|
111
|
+
if (!hasSelected) busLocal.value = busOptions.value[0].value
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{ immediate: true, deep: true }
|
|
115
|
+
)
|
|
118
116
|
|
|
119
117
|
const busValidationType = computed<string>(
|
|
120
118
|
() => `disk_devices[${props.index}].bus`
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
2
|
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
4
3
|
|
|
5
4
|
export interface UI_I_OsChange {
|
|
6
5
|
selectedMachineType: UI_I_OptionItem | null
|