Skip to content

Commit d52ab65

Browse files
committed
UI: Fix traffic Label on Zone creation wizard for VMware
1 parent 16c60c7 commit d52ab65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@
7979
</template>
8080
<template v-if="column.key === 'traffics'">
8181
<div v-for="traffic in record.traffics" :key="traffic.type">
82-
<a-tooltip :title="traffic.type.toUpperCase() + ' (' + traffic.label + ')'">
82+
<a-tooltip :title="traffic.type.toUpperCase() + ' (' + (hypervisor !== 'VMware' ? traffic.label : traffic.vSwitchName || '') + ')'">
8383
<a-tag
8484
:color="trafficColors[traffic.type]"
8585
style="margin:2px"
8686
>
8787

88-
{{ (traffic.type.toUpperCase() + ' (' + traffic.label + ')').slice(0, 20) }}
89-
{{ (traffic.type.toUpperCase() + ' (' + traffic.label + ')').length > 20 ? '...' : '' }}
88+
{{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 'VMware' ? traffic.label : traffic.vSwitchName || '') + ')').slice(0, 20) }}
89+
{{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 'VMware' ? traffic.label : traffic.vSwitchName || '') + ')').length > 20 ? '...' : '' }}
9090
<edit-outlined class="traffic-type-action" @click="editTraffic(record.key, traffic, $event)"/>
9191
<delete-outlined class="traffic-type-action" @click="deleteTraffic(record.key, traffic, $event)"/>
9292
</a-tag>

0 commit comments

Comments
 (0)