From db44b5a0373680d0af3a4c70cf96018a9e63e6bf Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 5 Aug 2026 07:35:03 +0200 Subject: [PATCH] Feature/add platform logo to platform selector in create or update account dialog (#7528) * Add platform logo to platform selector * Update changelog --- CHANGELOG.md | 1 + .../create-or-update-account-dialog.component.ts | 6 ++++++ .../create-or-update-account-dialog.html | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 426cca929..4b541d5af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added the platform logo to the platform selector in the create or update account dialog - Added the platform logo to the account selector in the create or update activity dialog ### Changed diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts index 86fc84711..c1d171b6f 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts @@ -76,6 +76,12 @@ export class GfCreateOrUpdateAccountDialogComponent { private readonly formBuilder = inject(FormBuilder); private readonly userService = inject(UserService); + protected get selectedPlatform() { + const platform = this.accountForm.get('platformId')?.value; + + return typeof platform === 'string' ? undefined : (platform as Platform); + } + public ngOnInit() { const { currencies } = this.dataService.fetchInfo(); this.currencies = currencies; diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html index 4e4c62b6f..85cd9dcfe 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -46,6 +46,14 @@
Platform + @if (selectedPlatform?.url) { + + }