From 43b75b8e746dbe3ece19672a5a3e91957efd8d1d Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 19 Apr 2025 22:19:08 +0200 Subject: [PATCH] Fixed punishment removed message closes #12 --- .../app/bans/history/history.component.html | 4 ++-- .../src/app/bans/history/history.component.ts | 19 ++----------------- 2 files changed, 4 insertions(+), 19 deletions(-) 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 @@ {{ this.historyFormat.getType(entry) }} - +
{{entry.username}}'s Minecraft skin {{ entry.username }}
- +
{{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);