UI: Fix traffic Label on Zone creation wizard for VMware (#11101)

This commit is contained in:
Pearl Dsilva 2025-07-17 03:31:28 -04:00 committed by GitHub
parent b57994eeb0
commit 15c09af5cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,14 +79,14 @@
</template> </template>
<template v-if="column.key === 'traffics'"> <template v-if="column.key === 'traffics'">
<div v-for="traffic in record.traffics" :key="traffic.type"> <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 <a-tag
:color="trafficColors[traffic.type]" :color="trafficColors[traffic.type]"
style="margin:2px" style="margin:2px"
> >
{{ (traffic.type.toUpperCase() + ' (' + traffic.label + ')').slice(0, 20) }} {{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 'VMware' ? traffic.label : traffic.vSwitchName || '') + ')').slice(0, 20) }}
{{ (traffic.type.toUpperCase() + ' (' + traffic.label + ')').length > 20 ? '...' : '' }} {{ (traffic.type.toUpperCase() + ' (' + (hypervisor !== 'VMware' ? traffic.label : traffic.vSwitchName || '') + ')').length > 20 ? '...' : '' }}
<edit-outlined class="traffic-type-action" @click="editTraffic(record.key, traffic, $event)"/> <edit-outlined class="traffic-type-action" @click="editTraffic(record.key, traffic, $event)"/>
<delete-outlined class="traffic-type-action" @click="deleteTraffic(record.key, traffic, $event)"/> <delete-outlined class="traffic-type-action" @click="deleteTraffic(record.key, traffic, $event)"/>
</a-tag> </a-tag>