bfg-common 1.3.324 → 1.3.326
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.
|
@@ -7,15 +7,7 @@
|
|
|
7
7
|
x="26"
|
|
8
8
|
:y="props.network.titlePosition"
|
|
9
9
|
>
|
|
10
|
-
<div
|
|
11
|
-
v-if="props.network.state.state === 3"
|
|
12
|
-
class="vsphere-icon-network-error"
|
|
13
|
-
></div>
|
|
14
|
-
<div
|
|
15
|
-
v-if="props.network.state.state === 2"
|
|
16
|
-
class="vsphere-icon-network-warning"
|
|
17
|
-
></div>
|
|
18
|
-
<div v-else class="vsphere-icon-network"></div>
|
|
10
|
+
<div :class="networkIcon"></div>
|
|
19
11
|
</foreignObject>
|
|
20
12
|
|
|
21
13
|
<a
|
|
@@ -189,6 +181,19 @@ const emits = defineEmits<{
|
|
|
189
181
|
|
|
190
182
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
191
183
|
|
|
184
|
+
const networkIcon = computed<string>(() => {
|
|
185
|
+
switch (props.network.state.state) {
|
|
186
|
+
case 0:
|
|
187
|
+
return 'vsphere-icon-network-error'
|
|
188
|
+
case 3:
|
|
189
|
+
return 'vsphere-icon-network-error'
|
|
190
|
+
case 2:
|
|
191
|
+
return 'vsphere-icon-network-warning'
|
|
192
|
+
default:
|
|
193
|
+
return 'vsphere-icon-network'
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
|
|
192
197
|
const networkPopupFields = computed(() =>
|
|
193
198
|
networkPopupFieldsFunc(
|
|
194
199
|
localization.value,
|