const ViewAccessPoints = { template: `

AccessPoints

IP Users
{{ item.ip.substring(21) }} {{ item.clients }}
`, computed: { getAPs () { const state = this.$store.state; return state.controller.ap.map(function (ip) { return { ip: ip, clients: state.controller._clients.filter(function (hwaddr) { const client = state.controller.clients[hwaddr]; return client.ap === ip; }).length, }; }) }, } }