fix: remove page size change in the port forwarding popover

1. Remove the page size change in the port forwarding popover when the port forwarding is more then 50.
2. Update the port forwarding popover title to the plural form

Change-Id: I3ca04d2d48d27db5d9329fdc601a5a991335810e
This commit is contained in:
Jingwei.Zhang 2022-08-29 10:20:06 +08:00
parent 202b45b269
commit 62fcb1d585
3 changed files with 2 additions and 7 deletions

View File

@ -1787,7 +1787,6 @@
"Port": "Port",
"Port Count": "Port Count",
"Port Detail": "Port Detail",
"Port Forwarding": "Port Forwarding",
"Port Forwardings": "Port Forwardings",
"Port Group": "Port Group",
"Port Groups": "Port Groups",

View File

@ -1787,7 +1787,6 @@
"Port": "端口",
"Port Count": "端口数量",
"Port Detail": "端口详情",
"Port Forwarding": "端口转发",
"Port Forwardings": "端口转发",
"Port Group": "端口组",
"Port Groups": "端口组",

View File

@ -159,10 +159,6 @@ export class FloatingIps extends Base {
return getPortForwardingName(rest, fip);
}
get portForwardingResourceName() {
return t('Port Forwarding');
}
get portForwardingResourcesName() {
return t('Port Forwardings');
}
@ -194,6 +190,7 @@ export class FloatingIps extends Base {
hideOnSinglePage: true,
pageSize,
size: 'small',
showSizeChanger: false,
}}
dataSource={newData}
renderItem={(item) => {
@ -208,7 +205,7 @@ export class FloatingIps extends Base {
return (
<Popover
content={content}
title={this.portForwardingResourceName}
title={this.portForwardingResourcesName}
destroyTooltipOnHide
placement="right"
>