Fix stat titles
This commit is contained in:
parent
13d595f7a2
commit
bdfed66505
@ -28,10 +28,18 @@ export default class StatsPie extends Vue {
|
||||
}
|
||||
|
||||
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 `Top 10 ${this.statType}s`;
|
||||
}
|
||||
|
||||
containerClass(): string {
|
||||
|
Loading…
Reference in New Issue
Block a user