Merge "fix: optimize the display of subnet information"

This commit is contained in:
Zuul 2022-08-26 07:13:16 +00:00 committed by Gerrit Code Review
commit fdcb61d5a9
3 changed files with 8 additions and 4 deletions

View File

@ -1589,6 +1589,7 @@
"Note: The security group you use will act on all virtual adapters of the instance.": "Note: The security group you use will act on all virtual adapters of the instance.", "Note: The security group you use will act on all virtual adapters of the instance.": "Note: The security group you use will act on all virtual adapters of the instance.",
"Nova Service": "Nova Service", "Nova Service": "Nova Service",
"Number of GPU": "Number of GPU", "Number of GPU": "Number of GPU",
"Number of IPs used by all projects": "Number of IPs used by all projects",
"Number of Master Nodes": "Number of Master Nodes", "Number of Master Nodes": "Number of Master Nodes",
"Number of Nodes": "Number of Nodes", "Number of Nodes": "Number of Nodes",
"Number of Ports": "Number of Ports", "Number of Ports": "Number of Ports",
@ -1737,7 +1738,6 @@
"Please input metadata": "Please input metadata", "Please input metadata": "Please input metadata",
"Please input name": "Please input name", "Please input name": "Please input name",
"Please input or load Template from a file": "Please input or load Template from a file", "Please input or load Template from a file": "Please input or load Template from a file",
"Please input port range": "Please input port range",
"Please input prefix": "Please input prefix", "Please input prefix": "Please input prefix",
"Please input protocol number if it absent in select list.": "Please input protocol number if it absent in select list.", "Please input protocol number if it absent in select list.": "Please input protocol number if it absent in select list.",
"Please input provider": "Please input provider", "Please input provider": "Please input provider",
@ -2224,6 +2224,7 @@
"Subnet Count": "Subnet Count", "Subnet Count": "Subnet Count",
"Subnet Detail": "Subnet Detail", "Subnet Detail": "Subnet Detail",
"Subnet ID": "Subnet ID", "Subnet ID": "Subnet ID",
"Subnet ID/Name": "Subnet ID/Name",
"Subnet Name": "Subnet Name", "Subnet Name": "Subnet Name",
"Subnets": "Subnets", "Subnets": "Subnets",
"Subordinate Projects": "Subordinate Projects", "Subordinate Projects": "Subordinate Projects",

View File

@ -1589,6 +1589,7 @@
"Note: The security group you use will act on all virtual adapters of the instance.": "注:您所用的安全组将作用于云主机的全部虚拟网卡。", "Note: The security group you use will act on all virtual adapters of the instance.": "注:您所用的安全组将作用于云主机的全部虚拟网卡。",
"Nova Service": "计算服务", "Nova Service": "计算服务",
"Number of GPU": "GPU数量", "Number of GPU": "GPU数量",
"Number of IPs used by all projects": "所有项目使用的IP数量",
"Number of Master Nodes": "主节点数", "Number of Master Nodes": "主节点数",
"Number of Nodes": "节点数量", "Number of Nodes": "节点数量",
"Number of Ports": "端口数量", "Number of Ports": "端口数量",
@ -1737,7 +1738,6 @@
"Please input metadata": "请输入元数据", "Please input metadata": "请输入元数据",
"Please input name": "请输入名称", "Please input name": "请输入名称",
"Please input or load Template from a file": "请输入或者从文件加载模板", "Please input or load Template from a file": "请输入或者从文件加载模板",
"Please input port range": "请输入端口范围",
"Please input prefix": "请输入前缀", "Please input prefix": "请输入前缀",
"Please input protocol number if it absent in select list.": "如果选择列表中没有,请输入协议号。", "Please input protocol number if it absent in select list.": "如果选择列表中没有,请输入协议号。",
"Please input provider": "请输入提供者", "Please input provider": "请输入提供者",
@ -2224,6 +2224,7 @@
"Subnet Count": "子网数量", "Subnet Count": "子网数量",
"Subnet Detail": "子网详情", "Subnet Detail": "子网详情",
"Subnet ID": "子网ID", "Subnet ID": "子网ID",
"Subnet ID/Name": "子网ID/名称",
"Subnet Name": "子网名称", "Subnet Name": "子网名称",
"Subnets": "子网", "Subnets": "子网",
"Subordinate Projects": "所属项目列表", "Subordinate Projects": "所属项目列表",

View File

@ -57,9 +57,8 @@ export class Subnets extends Base {
getColumns = () => { getColumns = () => {
const ret = [ const ret = [
{ {
title: t('Name'), title: t('Subnet ID/Name'),
dataIndex: 'name', dataIndex: 'name',
stringify: (name, record) => name || record.id,
routeName: this.getRouteName('subnetDetail'), routeName: this.getRouteName('subnetDetail'),
routeParamsFunc: (data) => ({ routeParamsFunc: (data) => ({
networkId: data.network_id, networkId: data.network_id,
@ -118,6 +117,9 @@ export class Subnets extends Base {
{ {
title: t('Used IPs'), title: t('Used IPs'),
dataIndex: 'used_ips', dataIndex: 'used_ips',
titleTip: this.isAdminPage
? ''
: t('Number of IPs used by all projects'),
} }
); );
} }