bfg-common 1.5.827 → 1.5.828
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.
|
@@ -243,14 +243,14 @@ watch(
|
|
|
243
243
|
watch(
|
|
244
244
|
() => form.value.resource.host,
|
|
245
245
|
(newValue) => {
|
|
246
|
-
emits('get-networks', newValue.id)
|
|
246
|
+
newValue?.id && emits('get-networks', newValue.id)
|
|
247
247
|
}
|
|
248
248
|
)
|
|
249
249
|
// Get networks for cluster
|
|
250
250
|
watch(
|
|
251
251
|
() => form.value.resource.cluster,
|
|
252
252
|
(newValue) => {
|
|
253
|
-
emits('get-networks', newValue.id)
|
|
253
|
+
newValue?.id && emits('get-networks', newValue.id)
|
|
254
254
|
}
|
|
255
255
|
)
|
|
256
256
|
|
|
@@ -89,12 +89,17 @@ watch(
|
|
|
89
89
|
)
|
|
90
90
|
|
|
91
91
|
const onTabChange = (name: keyof UI_I_SelectedTableDataKeys): void => {
|
|
92
|
+
/* TODO refactoring */
|
|
93
|
+
|
|
92
94
|
Object.keys(selectedTableDataKeys.value).forEach((key) => {
|
|
93
95
|
if (key !== name) {
|
|
94
96
|
selectedTableDataKeys.value[key as keyof UI_I_SelectedTableDataKeys] =
|
|
95
97
|
null
|
|
96
98
|
}
|
|
97
99
|
})
|
|
100
|
+
|
|
101
|
+
model.value.resource.host = null
|
|
102
|
+
model.value.resource.cluster = null
|
|
98
103
|
}
|
|
99
104
|
|
|
100
105
|
/* TODO этот вариант сейчас для миграции не используется когда шаг не таблица а дерево */
|