diff --git a/frontend/src/app/bans/history/history.component.html b/frontend/src/app/bans/history/history.component.html
index ececb08..00dd731 100644
--- a/frontend/src/app/bans/history/history.component.html
+++ b/frontend/src/app/bans/history/history.component.html
@@ -22,14 +22,14 @@
![{{entry.punishedBy}}'s Minecraft skin]()
diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts
index 3104c0f..7bcec0d 100644
--- a/frontend/src/app/bans/history/history.component.ts
+++ b/frontend/src/app/bans/history/history.component.ts
@@ -93,25 +93,10 @@ export class HistoryComponent implements OnInit, OnChanges {
).subscribe();
}
- setSearch(type: PunishmentHistory.TypeEnum, name: string, userType: 'player' | 'staff') {
- let punishmentType: 'all' | 'ban' | 'mute' | 'kick' | 'warn' = 'all';
- switch (type) {
- case 'ban':
- punishmentType = 'ban';
- break;
- case 'mute':
- punishmentType = 'mute';
- break;
- case 'kick':
- punishmentType = 'kick';
- break;
- case 'warn':
- punishmentType = 'warn';
- break;
- }
+ setSearch(name: string, userType: 'player' | 'staff') {
let searchParams: SearchParams = {
userType: userType,
- punishmentType: punishmentType,
+ punishmentType: 'all',
searchTerm: name
}
this.selectItem.emit(searchParams);
|