bfg-common 1.1.87 → 1.1.89
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/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue
CHANGED
|
@@ -83,7 +83,7 @@ const socketOptions = computed<number[]>(() => {
|
|
|
83
83
|
watch(
|
|
84
84
|
socketOptions,
|
|
85
85
|
() => {
|
|
86
|
-
!socketOptions.value.includes(selectedCorePerSocketLocal.value) &&
|
|
86
|
+
!socketOptions.value.includes(selectedCorePerSocketLocal.value) && !props.disabled &&
|
|
87
87
|
(selectedCorePerSocketLocal.value = 1)
|
|
88
88
|
},
|
|
89
89
|
{ deep: true }
|
|
@@ -170,11 +170,12 @@ const isCpuDisabled = computed<boolean>(
|
|
|
170
170
|
)
|
|
171
171
|
watch(selectedCpu, (newValue) => {
|
|
172
172
|
selectedCpu.value = Math.floor(+newValue)
|
|
173
|
-
if (!(selectedCpu.value % selectedCorePerSocket.value))
|
|
173
|
+
if (!(selectedCpu.value % selectedCorePerSocket.value) || isDisabled.value)
|
|
174
|
+
return
|
|
174
175
|
selectedCorePerSocket.value = 1
|
|
175
176
|
})
|
|
176
177
|
const maxCpuOptions = computed<UI_I_OptionItem[]>(() =>
|
|
177
|
-
cpuOptionsFunc(localization.value, selectedCpu.value
|
|
178
|
+
cpuOptionsFunc(localization.value, selectedCpu.value, props.maxCpus)
|
|
178
179
|
)
|
|
179
180
|
watch(selectedCpu, (newValue) => {
|
|
180
181
|
if (newValue >= props.maxCpus) {
|