const ViewClients = { template: `

Clients of Router {{ $route.params.ip }}

Addr AP FreqHighs SignalLow SignalHigh
{{ item.addr.substring(12) }} {{ item.ap.substring(21) }} {{ item.freq_highest }} {{ item.signal_low_freq }} {{ item.signal_high_freq }}
`, computed: { getClients () { const state = this.$store.state, apIP = this.$route.params.ip; return state.controller._clients.map(function(addr) { const client = state.controller.clients[addr]; if(apIP === undefined || client.ap === apIP) return client return null }); }, } }