This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch fix-trafficLabel-vmware
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 1f379e1a48e6134d4c499dcb084410c6db063287
Author: Pearl Dsilva <[email protected]>
AuthorDate: Fri Jun 27 13:02:10 2025 -0400

    UI: Fix traffic Label on Zone creation wizard for VMware
---
 ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue 
b/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue
index 1117cb6ec01..551326b430a 100644
--- a/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue
+++ b/ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue
@@ -79,14 +79,14 @@
         </template>
         <template v-if="column.key === 'traffics'">
           <div v-for="traffic in record.traffics" :key="traffic.type">
-            <a-tooltip :title="traffic.type.toUpperCase() + ' (' + 
traffic.label + ')'">
+            <a-tooltip :title="traffic.type.toUpperCase() + ' (' + (hypervisor 
!== 'VMware' ? traffic.label : traffic.vSwitchName) + ')'">
               <a-tag
                 :color="trafficColors[traffic.type]"
                 style="margin:2px"
               >
 
-                {{ (traffic.type.toUpperCase() + ' (' + traffic.label + 
')').slice(0, 20) }}
-                {{ (traffic.type.toUpperCase() + ' (' + traffic.label + 
')').length > 20 ? '...' : '' }}
+                {{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 
'VMware' ? traffic.label : traffic.vSwitchName) + ')').slice(0, 20) }}
+                {{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 
'VMware' ? traffic.label : traffic.vSwitchName) + ')').length > 20 ? '...' : '' 
}}
                 <edit-outlined class="traffic-type-action" 
@click="editTraffic(record.key, traffic, $event)"/>
                 <delete-outlined class="traffic-type-action" 
@click="deleteTraffic(record.key, traffic, $event)"/>
               </a-tag>

Reply via email to