Fixed punishment removed message closes #12
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user