Remove custom filter

This commit is contained in:
Douglas Barone 2022-04-04 16:46:04 -04:00
parent 822ab2f41e
commit 41ea5a9574

View File

@ -36,7 +36,6 @@
:search="filter" :search="filter"
dense dense
:footer-props="{ itemsPerPageOptions: [15, 25, 50, 100, 150] }" :footer-props="{ itemsPerPageOptions: [15, 25, 50, 100, 150] }"
:custom-filter="customFilter"
> >
<template #[`item.user`]="{ item: { user } }"> <template #[`item.user`]="{ item: { user } }">
<span v-if="user"> <span v-if="user">
@ -82,19 +81,7 @@ export default {
this.$router.push({ name: 'access-points' }) this.$router.push({ name: 'access-points' })
} }
}, },
methods: {
customFilter(value, search, item) {
if (typeof value === 'string')
return value.toLowerCase().includes(search.toLowerCase())
if (typeof value === 'object')
return Object.keys(value).some(
key =>
typeof value[key] === 'string' &&
value[key].toLowerCase().includes(search.toLowerCase())
)
}
},
apollo: { apollo: {
accessPoint: { accessPoint: {
pollInterval: 1000, pollInterval: 1000,