infinite loader bug fixing

This commit is contained in:
smilerz
2021-09-06 12:28:14 -05:00
parent 7053a857c2
commit 84744560e0
12 changed files with 247 additions and 69 deletions

View File

@ -103,8 +103,9 @@ export default {
methods: {
// this.genericAPI inherited from ApiMixin
resetList: function (e) {
this.items_right = []
this.items_left = []
this['items_' + e.column] = []
this[e.column + '_counts'].max = 9999 + Math.random()
this[e.column + '_counts'].current = 0
},
startAction: function (e, param) {
let source = e?.source ?? {}
@ -192,8 +193,9 @@ export default {
this['items_' + column] = this['items_' + column].concat(result.data?.results)
this[column + '_counts']['current'] = this['items_' + column].length
this[column + '_counts']['max'] = result.data.count
} else {
this[column + '_counts']['current'] = 0
this[column + '_counts']['max'] = 0
console.log('no data returned')
}
}).catch((err) => {