mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: Fix traffic Label on Zone creation wizard for VMware (#11101)
This commit is contained in:
parent
b57994eeb0
commit
15c09af5cc
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user