Remove timeout

pull/880/head
Cagatay Civici 2021-01-20 13:45:26 +03:00
parent 624dcd7558
commit dbbf4ce38c
1 changed files with 10 additions and 14 deletions

View File

@ -116,13 +116,11 @@ export default {
loadLazyData() { loadLazyData() {
this.loading = true; this.loading = true;
setTimeout(() => { this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => { this.customers = data.customers;
this.customers = data.customers; this.totalRecords = data.totalRecords;
this.totalRecords = data.totalRecords; this.loading = false;
this.loading = false; });
});
}, 1000);
}, },
onPage(event) { onPage(event) {
this.lazyParams = event; this.lazyParams = event;
@ -194,13 +192,11 @@ export default {
loadLazyData() { loadLazyData() {
this.loading = true; this.loading = true;
setTimeout(() => { this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => { this.customers = data.customers;
this.customers = data.customers; this.totalRecords = data.totalRecords;
this.totalRecords = data.totalRecords; this.loading = false;
this.loading = false; });
});
}, 1000);
}, },
onPage(event) { onPage(event) {
this.lazyParams = event; this.lazyParams = event;