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 {