From bdfed665050746ea19aaf7227a59c1859824c8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 15:32:54 +0200 Subject: [PATCH] Fix stat titles --- web/frontend/src/components/StatsPie.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web/frontend/src/components/StatsPie.vue b/web/frontend/src/components/StatsPie.vue index 4c74e34..73149ae 100644 --- a/web/frontend/src/components/StatsPie.vue +++ b/web/frontend/src/components/StatsPie.vue @@ -28,10 +28,18 @@ export default class StatsPie extends Vue { } title(): string { - if (this.statType === 'total') { - return 'Totals'; + switch (this.statType) { + case 'password': + return 'Top 10 Passwords'; + case 'username': + return 'Top 10 Usernames'; + case 'ip': + return 'Top 10 IPs'; + case 'country': + return 'Top 10 Countries'; + case 'total': + return 'Totals'; } - return `Top 10 ${this.statType}s`; } containerClass(): string {