Browse Source

Improve entity logos

pull/8088/head
Thomas Kaul 7 days ago
parent
commit
b0e0a16ed1
  1. 10
      libs/ui/src/lib/account-selector/account-selector.component.stories.ts
  2. 5
      libs/ui/src/lib/entity-logo/entity-logo-image-source.service.ts

10
libs/ui/src/lib/account-selector/account-selector.component.stories.ts

@ -59,6 +59,16 @@ const ACCOUNTS: AccountWithPlatform[] = [
platformId: 'f3e9d0e5-1e0f-4a3c-8b12-1f2a3b4c5d6e',
updatedAt: new Date('2024-01-01'),
userId: '081aa387-487d-4438-83a4-3060eb2a016e'
},
{
comment: null,
createdAt: new Date('2024-01-01'),
currency: 'EUR',
id: '267ec888-cb57-45d0-8085-938017417a2e',
name: 'Savings Account',
platformId: null,
updatedAt: new Date('2024-01-01'),
userId: '081aa387-487d-4438-83a4-3060eb2a016e'
}
];

5
libs/ui/src/lib/entity-logo/entity-logo-image-source.service.ts

@ -2,8 +2,9 @@ import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces';
import { Service } from '@angular/core';
// Must stay auto-provided: the currency selector story renders gf-entity-logo
// without providing an override and resolves this from the root injector
// Must stay auto-provided: the currency selector and portfolio filter form
// stories render gf-entity-logo without providing an override and resolve
// this from the root injector
@Service()
export class EntityLogoImageSourceService {
public getLogoUrlByAssetProfileIdentifier({

Loading…
Cancel
Save