Fix stat titles

This commit is contained in:
Torjus Håkestad 2021-04-10 15:32:54 +02:00
parent 13d595f7a2
commit bdfed66505

View File

@ -28,10 +28,18 @@ export default class StatsPie extends Vue {
} }
title(): string { title(): string {
if (this.statType === 'total') { 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 'Totals';
} }
return `Top 10 ${this.statType}s`;
} }
containerClass(): string { containerClass(): string {