From 3a2a54050f31ed6665b126da1d871ecf9a6d980a Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 12 Apr 2025 22:20:45 +0200 Subject: [PATCH] Add custom avatar for console entries in ban history Updated the `getAvatarUrl` method to return a specific avatar image for console entries. This ensures better visual distinction for console-generated actions in the ban history. --- frontend/src/app/bans/history/history.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts index 3ba9e0f..631671b 100644 --- a/frontend/src/app/bans/history/history.component.ts +++ b/frontend/src/app/bans/history/history.component.ts @@ -95,6 +95,9 @@ export class HistoryComponent implements OnInit, OnChanges { public getAvatarUrl(entry: string): string { let uuid = entry.replace('-', ''); + if (uuid === 'C') { + return '/public/img/random/console.png'; + } return `https://crafatar.com/avatars/${uuid}?size=25&overlay`; } }