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,
@@ -236,7 +236,7 @@ watch(
236
236
 
237
237
  emits('send-data', {
238
238
  network: option.text,
239
- net_bridge: option.value,
239
+ net_bridge: props.project === 'procurator' ? option.value : '',
240
240
  target: target.value,
241
241
  model: adapterType.value,
242
242
  mac: macAddress.value,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.324",
4
+ "version": "1.3.326",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",