Browse Source
Feature/add platform logo to platform selector in create or update account dialog (#7528)
* Add platform logo to platform selector
* Update changelog
pull/7543/head
Thomas Kaul
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
15 additions and
0 deletions
-
CHANGELOG.md
-
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts
-
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -46,6 +46,14 @@ |
|
|
|
<div [class.d-none]="platforms?.length < 1"> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<mat-label i18n>Platform</mat-label> |
|
|
|
@if (selectedPlatform?.url) { |
|
|
|
<gf-entity-logo |
|
|
|
class="ml-3" |
|
|
|
matPrefix |
|
|
|
[tooltip]="selectedPlatform?.name" |
|
|
|
[url]="selectedPlatform?.url" |
|
|
|
/> |
|
|
|
} |
|
|
|
<input |
|
|
|
formControlName="platformId" |
|
|
|
matInput |
|
|
|
|