diff --git a/web/src/views/AccessPoints.vue b/web/src/views/AccessPoints.vue index 4cf073f..a3fed31 100644 --- a/web/src/views/AccessPoints.vue +++ b/web/src/views/AccessPoints.vue @@ -12,19 +12,20 @@ - + + + mdi-check-all Padrões @@ -54,7 +55,7 @@ - - @@ -97,15 +100,6 @@ - - As informações são atualizadas automaticamente header.active) + }, + computedAccessPoints() { + return this.accessPoints?.map(accessPoint => ({ + ...accessPoint, + name: accessPoint.name || accessPoint.hostname + })) } }, methods: { @@ -181,11 +174,10 @@ export default { }, loadColor(clients) { const load = this.load(clients) - if (load < 20) return 'teal lighten-2' - else if (load < 30) return 'green' + if (load < 10) return 'teal' + else if (load < 25) return 'green' else if (load < 40) return 'light-green' else if (load < 50) return 'lime' - else if (load < 60) return 'yellow darken-2' else if (load < 70) return 'amber' else if (load < 80) return 'orange' else if (load < 90) return 'deep-orange' @@ -260,4 +252,8 @@ export default { } - +