ui: fix paging in enable static NAT form (#5849)

Fixes #5715

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2022-01-11 22:31:02 +05:30 committed by GitHub
parent 2e2d328cde
commit 223bc11d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@
size="small"
:current="page"
:pageSize="pageSize"
:total="vmsList.length"
:total="vmCount"
:showTotal="total => `${$t('label.total')} ${total} ${$t('label.items')}`"
:pageSizeOptions="['10', '20', '40', '80', '100']"
@change="changePage"
@ -162,7 +162,8 @@ export default {
vpcTiers: [],
selectedVpcTier: null,
page: 1,
pageSize: 10
pageSize: 10,
vmCount: 0
}
},
created () {
@ -186,6 +187,7 @@ export default {
domainid: this.resource.domainid,
keyword: this.searchQuery
}).then(response => {
this.vmCount = response.listvirtualmachinesresponse.count
this.vmsList = response.listvirtualmachinesresponse.virtualmachine || []
}).catch(error => {
this.$notifyError(error)