Remove custom filter
This commit is contained in:
parent
822ab2f41e
commit
41ea5a9574
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user