mirror of
https://github.com/apache/cloudstack
synced 2026-08-08 15:48:29 +00:00
view: reset listview count on list API call (#271)
Fixes #258 Reset items count for listview while calling a list API to prevent wrong pagination on empty list in response. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
ac2e4f266e
commit
6c4fdec2ac
@ -457,6 +457,7 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
this.itemCount = 0
|
||||
for (const key in json[responseName]) {
|
||||
if (key === 'count') {
|
||||
this.itemCount = json[responseName].count
|
||||
|
||||
Loading…
Reference in New Issue
Block a user