Refactor name

pull/880/head
Cagatay Civici 2021-01-20 11:02:45 +03:00
parent 04f0a4575b
commit ad9e4d6be1
1 changed files with 6 additions and 6 deletions

View File

@ -113,7 +113,7 @@ export default {
this.lazyFilters = filters; this.lazyFilters = filters;
}, },
methods: { methods: {
onLazyEvent(event) { loadLazyData(event) {
const proxyFilters = JSON.parse(JSON.stringify(this.filters)); const proxyFilters = JSON.parse(JSON.stringify(this.filters));
for(let filter in proxyFilters) { for(let filter in proxyFilters) {
this.lazyFilters[filter].value = proxyFilters[filter] || null; this.lazyFilters[filter].value = proxyFilters[filter] || null;
@ -137,10 +137,10 @@ export default {
}, 1000); }, 1000);
}, },
onPage(event) { onPage(event) {
this.onLazyEvent(event); this.loadLazyData(event);
}, },
onSort(event) { onSort(event) {
this.onLazyEvent(event); this.loadLazyData(event);
}, },
onFilter(event) { onFilter(event) {
if(event.keyCode === 13) { if(event.keyCode === 13) {
@ -220,7 +220,7 @@ export default {
this.lazyFilters = filters; this.lazyFilters = filters;
}, },
methods: { methods: {
onLazyEvent(event) { loadLazyData(event) {
const proxyFilters = JSON.parse(JSON.stringify(this.filters)); const proxyFilters = JSON.parse(JSON.stringify(this.filters));
for(let filter in proxyFilters) { for(let filter in proxyFilters) {
this.lazyFilters[filter].value = proxyFilters[filter] || null; this.lazyFilters[filter].value = proxyFilters[filter] || null;
@ -244,10 +244,10 @@ export default {
}, 1000); }, 1000);
}, },
onPage(event) { onPage(event) {
this.onLazyEvent(event); this.loadLazyData(event);
}, },
onSort(event) { onSort(event) {
this.onLazyEvent(event); this.loadLazyData(event);
}, },
onFilter(event) { onFilter(event) {
if(event.keyCode === 13) { if(event.keyCode === 13) {