Use filtering on index

This commit is contained in:
Douglas Barone 2023-02-07 15:18:53 -04:00
parent 547aefe2e1
commit cd8a18090f

View File

@ -394,8 +394,8 @@ export default {
fetchPolicy: 'cache-and-network', fetchPolicy: 'cache-and-network',
debounce: 200, debounce: 200,
query: gql` query: gql`
query accessPoints { query accessPoints($networkShortName: String) {
accessPoints { accessPoints(networkShortName: $networkShortName) {
id id
mac mac
hostname hostname
@ -420,6 +420,11 @@ export default {
} }
} }
`, `,
variables() {
return {
networkShortName: (this.sameCampus && this.me?.campus) || undefined
}
},
subscribeToMore: { subscribeToMore: {
document: gql` document: gql`
subscription { subscription {