diff --git a/frontend/src/app/pages/forms/appeal/appeal.component.ts b/frontend/src/app/pages/forms/appeal/appeal.component.ts index 57ca30c..195212d 100644 --- a/frontend/src/app/pages/forms/appeal/appeal.component.ts +++ b/frontend/src/app/pages/forms/appeal/appeal.component.ts @@ -10,6 +10,7 @@ import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; import {MatFormFieldModule} from '@angular/material/form-field'; import {MatSelectModule} from '@angular/material/select'; import {MatInputModule} from '@angular/material/input'; +import {HistoryFormatService} from '@pages/reference/bans/history-format.service'; @Component({ selector: 'app-appeal', @@ -36,6 +37,7 @@ export class AppealComponent implements OnInit, AfterViewInit { protected selectedPunishment = signal(null); constructor( + private historyFormatService: HistoryFormatService, private appealApi: AppealsService, private historyApi: HistoryService, protected authService: AuthService, @@ -54,7 +56,7 @@ export class AppealComponent implements OnInit, AfterViewInit { throw new Error('JWT subject is null, are you logged in?'); } this.historyApi.getAllHistoryForUUID(uuid).subscribe(history => { - this.history.set(history); + this.history.set(history.filter(item => this.historyFormatService.isActive(item))); }) }