Use filtering on index
This commit is contained in:
parent
547aefe2e1
commit
cd8a18090f
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user