Browse Source

Feature/rename asset profile icon component to entity logo component (#4861)

* Rename asset profile icon component to entity logo component

* Update changelog
pull/4864/head
Thomas Kaul 3 weeks ago
committed by GitHub
parent
commit
fa99876dca
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 8
      apps/client/src/app/components/accounts-table/accounts-table.component.html
  3. 4
      apps/client/src/app/components/accounts-table/accounts-table.module.ts
  4. 2
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
  5. 4
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts
  6. 2
      apps/client/src/app/components/admin-platform/admin-platform.component.html
  7. 4
      apps/client/src/app/components/admin-platform/admin-platform.module.ts
  8. 6
      apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html
  9. 4
      apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts
  10. 2
      apps/client/src/app/components/admin-settings/admin-settings.component.html
  11. 4
      apps/client/src/app/components/admin-settings/admin-settings.module.ts
  12. 2
      apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
  13. 4
      apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts
  14. 4
      apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
  15. 4
      apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts
  16. 2
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
  17. 4
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts
  18. 4
      libs/ui/src/lib/activities-table/activities-table.component.html
  19. 4
      libs/ui/src/lib/activities-table/activities-table.component.ts
  20. 1
      libs/ui/src/lib/asset-profile-icon/index.ts
  21. 4
      libs/ui/src/lib/assistant/assistant.component.ts
  22. 2
      libs/ui/src/lib/assistant/assistant.html
  23. 0
      libs/ui/src/lib/entity-logo/entity-logo.component.html
  24. 0
      libs/ui/src/lib/entity-logo/entity-logo.component.scss
  25. 8
      libs/ui/src/lib/entity-logo/entity-logo.component.ts
  26. 1
      libs/ui/src/lib/entity-logo/index.ts
  27. 2
      libs/ui/src/lib/holdings-table/holdings-table.component.html
  28. 4
      libs/ui/src/lib/holdings-table/holdings-table.component.ts

2
CHANGELOG.md

@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Moved the asset profile icon component to `@ghostfolio/ui` - Renamed the asset profile icon component to entity logo component and moved to `@ghostfolio/ui`
- Renamed `Account` to `accounts` in the `User` database schema - Renamed `Account` to `accounts` in the `User` database schema
### Fixed ### Fixed

8
apps/client/src/app/components/accounts-table/accounts-table.component.html

@ -44,10 +44,10 @@
</th> </th>
<td *matCellDef="let element" class="px-1" mat-cell> <td *matCellDef="let element" class="px-1" mat-cell>
@if (element.Platform?.url) { @if (element.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="d-inline d-sm-none mr-1" class="d-inline d-sm-none mr-1"
[tooltip]="element.Platform?.name" [tooltip]="element.Platform?.name"
[url]="element.Platform?.url" [url]="element.Platform.url"
/> />
} }
<span>{{ element.name }}</span> <span>{{ element.name }}</span>
@ -92,10 +92,10 @@
> >
<div class="d-flex"> <div class="d-flex">
@if (element.Platform?.url) { @if (element.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="element.Platform?.name" [tooltip]="element.Platform?.name"
[url]="element.Platform?.url" [url]="element.Platform.url"
/> />
} }
<span>{{ element.Platform?.name }}</span> <span>{{ element.Platform?.name }}</span>

4
apps/client/src/app/components/accounts-table/accounts-table.module.ts

@ -1,4 +1,4 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfValueComponent } from '@ghostfolio/ui/value'; import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
@ -17,7 +17,7 @@ import { AccountsTableComponent } from './accounts-table.component';
exports: [AccountsTableComponent], exports: [AccountsTableComponent],
imports: [ imports: [
CommonModule, CommonModule,
GfAssetProfileIconComponent, GfEntityLogoComponent,
GfValueComponent, GfValueComponent,
MatButtonModule, MatButtonModule,
MatMenuModule, MatMenuModule,

2
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -507,7 +507,7 @@
<mat-label i18n>Url</mat-label> <mat-label i18n>Url</mat-label>
<input formControlName="url" matInput type="text" /> <input formControlName="url" matInput type="text" />
@if (assetProfileForm.get('url').value) { @if (assetProfileForm.get('url').value) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-3" class="mr-3"
matSuffix matSuffix
[url]="assetProfileForm.get('url').value" [url]="assetProfileForm.get('url').value"

4
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts

@ -1,6 +1,6 @@
import { AdminMarketDataService } from '@ghostfolio/client/components/admin-market-data/admin-market-data.service'; import { AdminMarketDataService } from '@ghostfolio/client/components/admin-market-data/admin-market-data.service';
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector'; import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector';
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfHistoricalMarketDataEditorComponent } from '@ghostfolio/ui/historical-market-data-editor'; import { GfHistoricalMarketDataEditorComponent } from '@ghostfolio/ui/historical-market-data-editor';
import { GfLineChartComponent } from '@ghostfolio/ui/line-chart'; import { GfLineChartComponent } from '@ghostfolio/ui/line-chart';
import { GfPortfolioProportionChartComponent } from '@ghostfolio/ui/portfolio-proportion-chart'; import { GfPortfolioProportionChartComponent } from '@ghostfolio/ui/portfolio-proportion-chart';
@ -27,8 +27,8 @@ import { AssetProfileDialog } from './asset-profile-dialog.component';
imports: [ imports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
GfAssetProfileIconComponent,
GfCurrencySelectorComponent, GfCurrencySelectorComponent,
GfEntityLogoComponent,
GfHistoricalMarketDataEditorComponent, GfHistoricalMarketDataEditorComponent,
GfLineChartComponent, GfLineChartComponent,
GfPortfolioProportionChartComponent, GfPortfolioProportionChartComponent,

2
apps/client/src/app/components/admin-platform/admin-platform.component.html

@ -23,7 +23,7 @@
</th> </th>
<td *matCellDef="let element" class="px-1" mat-cell> <td *matCellDef="let element" class="px-1" mat-cell>
@if (element.url) { @if (element.url) {
<gf-asset-profile-icon <gf-entity-logo
class="d-inline mr-1" class="d-inline mr-1"
[tooltip]="element.name" [tooltip]="element.name"
[url]="element.url" [url]="element.url"

4
apps/client/src/app/components/admin-platform/admin-platform.module.ts

@ -1,4 +1,4 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@ -16,8 +16,8 @@ import { GfCreateOrUpdatePlatformDialogModule } from './create-or-update-platfor
exports: [AdminPlatformComponent], exports: [AdminPlatformComponent],
imports: [ imports: [
CommonModule, CommonModule,
GfAssetProfileIconComponent,
GfCreateOrUpdatePlatformDialogModule, GfCreateOrUpdatePlatformDialogModule,
GfEntityLogoComponent,
MatButtonModule, MatButtonModule,
MatMenuModule, MatMenuModule,
MatSortModule, MatSortModule,

6
apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html

@ -29,11 +29,7 @@
(keydown.enter)="$event.stopPropagation()" (keydown.enter)="$event.stopPropagation()"
/> />
@if (data.platform.url) { @if (data.platform.url) {
<gf-asset-profile-icon <gf-entity-logo class="mr-3" matSuffix [url]="data.platform.url" />
class="mr-3"
matSuffix
[url]="data.platform.url"
/>
} }
</mat-form-field> </mat-form-field>
</div> </div>

4
apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts

@ -1,4 +1,4 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
@ -14,8 +14,8 @@ import { CreateOrUpdatePlatformDialog } from './create-or-update-platform-dialog
declarations: [CreateOrUpdatePlatformDialog], declarations: [CreateOrUpdatePlatformDialog],
imports: [ imports: [
CommonModule, CommonModule,
GfAssetProfileIconComponent,
FormsModule, FormsModule,
GfEntityLogoComponent,
MatButtonModule, MatButtonModule,
MatDialogModule, MatDialogModule,
MatFormFieldModule, MatFormFieldModule,

2
apps/client/src/app/components/admin-settings/admin-settings.component.html

@ -9,7 +9,7 @@
</th> </th>
<td *matCellDef="let element" class="px-1 py-2" mat-cell> <td *matCellDef="let element" class="px-1 py-2" mat-cell>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<gf-asset-profile-icon class="mr-1" [url]="element.url" /> <gf-entity-logo class="mr-1" [url]="element.url" />
<div> <div>
@if (isGhostfolioDataProvider(element)) { @if (isGhostfolioDataProvider(element)) {
<a <a

4
apps/client/src/app/components/admin-settings/admin-settings.module.ts

@ -1,6 +1,6 @@
import { GfAdminPlatformModule } from '@ghostfolio/client/components/admin-platform/admin-platform.module'; import { GfAdminPlatformModule } from '@ghostfolio/client/components/admin-platform/admin-platform.module';
import { GfAdminTagModule } from '@ghostfolio/client/components/admin-tag/admin-tag.module'; import { GfAdminTagModule } from '@ghostfolio/client/components/admin-tag/admin-tag.module';
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
@ -20,7 +20,7 @@ import { AdminSettingsComponent } from './admin-settings.component';
CommonModule, CommonModule,
GfAdminPlatformModule, GfAdminPlatformModule,
GfAdminTagModule, GfAdminTagModule,
GfAssetProfileIconComponent, GfEntityLogoComponent,
GfPremiumIndicatorComponent, GfPremiumIndicatorComponent,
MatButtonModule, MatButtonModule,
MatMenuModule, MatMenuModule,

2
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html

@ -61,7 +61,7 @@
) { ) {
<mat-option [value]="platformEntry"> <mat-option [value]="platformEntry">
<span class="d-flex"> <span class="d-flex">
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="platformEntry.name" [tooltip]="platformEntry.name"
[url]="platformEntry.url" [url]="platformEntry.url"

4
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts

@ -1,5 +1,5 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector'; import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector';
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
@ -18,8 +18,8 @@ import { CreateOrUpdateAccountDialog } from './create-or-update-account-dialog.c
imports: [ imports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
GfAssetProfileIconComponent,
GfCurrencySelectorComponent, GfCurrencySelectorComponent,
GfEntityLogoComponent,
MatAutocompleteModule, MatAutocompleteModule,
MatButtonModule, MatButtonModule,
MatCheckboxModule, MatCheckboxModule,

4
apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html

@ -14,7 +14,7 @@
<mat-option [value]="account.id"> <mat-option [value]="account.id">
<div class="d-flex"> <div class="d-flex">
@if (account.Platform?.url) { @if (account.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="account.Platform?.name" [tooltip]="account.Platform?.name"
[url]="account.Platform?.url" [url]="account.Platform?.url"
@ -35,7 +35,7 @@
<mat-option [value]="account.id"> <mat-option [value]="account.id">
<div class="d-flex"> <div class="d-flex">
@if (account.Platform?.url) { @if (account.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="account.Platform?.name" [tooltip]="account.Platform?.name"
[url]="account.Platform?.url" [url]="account.Platform?.url"

4
apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts

@ -1,4 +1,4 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
@ -15,7 +15,7 @@ import { TransferBalanceDialog } from './transfer-balance-dialog.component';
declarations: [TransferBalanceDialog], declarations: [TransferBalanceDialog],
imports: [ imports: [
CommonModule, CommonModule,
GfAssetProfileIconComponent, GfEntityLogoComponent,
MatButtonModule, MatButtonModule,
MatDialogModule, MatDialogModule,
MatFormFieldModule, MatFormFieldModule,

2
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html

@ -94,7 +94,7 @@
<mat-option [value]="account.id"> <mat-option [value]="account.id">
<div class="d-flex"> <div class="d-flex">
@if (account.Platform?.url) { @if (account.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="account.Platform?.name" [tooltip]="account.Platform?.name"
[url]="account.Platform?.url" [url]="account.Platform?.url"

4
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts

@ -1,4 +1,4 @@
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfSymbolAutocompleteComponent } from '@ghostfolio/ui/symbol-autocomplete'; import { GfSymbolAutocompleteComponent } from '@ghostfolio/ui/symbol-autocomplete';
import { GfTagsSelectorComponent } from '@ghostfolio/ui/tags-selector'; import { GfTagsSelectorComponent } from '@ghostfolio/ui/tags-selector';
import { GfValueComponent } from '@ghostfolio/ui/value'; import { GfValueComponent } from '@ghostfolio/ui/value';
@ -21,7 +21,7 @@ import { CreateOrUpdateActivityDialog } from './create-or-update-activity-dialog
imports: [ imports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
GfAssetProfileIconComponent, GfEntityLogoComponent,
GfSymbolAutocompleteComponent, GfSymbolAutocompleteComponent,
GfTagsSelectorComponent, GfTagsSelectorComponent,
GfValueComponent, GfValueComponent,

4
libs/ui/src/lib/activities-table/activities-table.component.html

@ -124,7 +124,7 @@
<ng-container matColumnDef="icon" sticky> <ng-container matColumnDef="icon" sticky>
<th *matHeaderCellDef class="px-1" mat-header-cell></th> <th *matHeaderCellDef class="px-1" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>
<gf-asset-profile-icon <gf-entity-logo
[dataSource]="element.SymbolProfile?.dataSource" [dataSource]="element.SymbolProfile?.dataSource"
[symbol]="element.SymbolProfile?.symbol" [symbol]="element.SymbolProfile?.symbol"
[tooltip]="element.SymbolProfile?.name" [tooltip]="element.SymbolProfile?.name"
@ -310,7 +310,7 @@
<td *matCellDef="let element" class="px-1" mat-cell> <td *matCellDef="let element" class="px-1" mat-cell>
<div class="d-flex"> <div class="d-flex">
@if (element.Account?.Platform?.url) { @if (element.Account?.Platform?.url) {
<gf-asset-profile-icon <gf-entity-logo
class="mr-1" class="mr-1"
[tooltip]="element.Account?.Platform?.name" [tooltip]="element.Account?.Platform?.name"
[url]="element.Account?.Platform?.url" [url]="element.Account?.Platform?.url"

4
libs/ui/src/lib/activities-table/activities-table.component.ts

@ -7,7 +7,7 @@ import { getDateFormatString, getLocale } from '@ghostfolio/common/helper';
import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces'; import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces';
import { OrderWithAccount } from '@ghostfolio/common/types'; import { OrderWithAccount } from '@ghostfolio/common/types';
import { GfActivityTypeComponent } from '@ghostfolio/ui/activity-type'; import { GfActivityTypeComponent } from '@ghostfolio/ui/activity-type';
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfNoTransactionsInfoComponent } from '@ghostfolio/ui/no-transactions-info'; import { GfNoTransactionsInfoComponent } from '@ghostfolio/ui/no-transactions-info';
import { GfValueComponent } from '@ghostfolio/ui/value'; import { GfValueComponent } from '@ghostfolio/ui/value';
@ -52,7 +52,7 @@ import { Subject, Subscription, takeUntil } from 'rxjs';
imports: [ imports: [
CommonModule, CommonModule,
GfActivityTypeComponent, GfActivityTypeComponent,
GfAssetProfileIconComponent, GfEntityLogoComponent,
GfNoTransactionsInfoComponent, GfNoTransactionsInfoComponent,
GfSymbolModule, GfSymbolModule,
GfValueComponent, GfValueComponent,

1
libs/ui/src/lib/asset-profile-icon/index.ts

@ -1 +0,0 @@
export * from './asset-profile-icon.component';

4
libs/ui/src/lib/assistant/assistant.component.ts

@ -4,7 +4,7 @@ import { DataService } from '@ghostfolio/client/services/data.service';
import { getAssetProfileIdentifier } from '@ghostfolio/common/helper'; import { getAssetProfileIdentifier } from '@ghostfolio/common/helper';
import { Filter, PortfolioPosition, User } from '@ghostfolio/common/interfaces'; import { Filter, PortfolioPosition, User } from '@ghostfolio/common/interfaces';
import { DateRange } from '@ghostfolio/common/types'; import { DateRange } from '@ghostfolio/common/types';
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { translate } from '@ghostfolio/ui/i18n'; import { translate } from '@ghostfolio/ui/i18n';
import { FocusKeyManager } from '@angular/cdk/a11y'; import { FocusKeyManager } from '@angular/cdk/a11y';
@ -61,8 +61,8 @@ import {
imports: [ imports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
GfAssetProfileIconComponent,
GfAssistantListItemComponent, GfAssistantListItemComponent,
GfEntityLogoComponent,
GfSymbolModule, GfSymbolModule,
MatButtonModule, MatButtonModule,
MatFormFieldModule, MatFormFieldModule,

2
libs/ui/src/lib/assistant/assistant.html

@ -112,7 +112,7 @@
@for (account of accounts; track account.id) { @for (account of accounts; track account.id) {
<mat-option [value]="account.id"> <mat-option [value]="account.id">
<div class="d-flex"> <div class="d-flex">
<gf-asset-profile-icon <gf-entity-logo
*ngIf="account.Platform?.url" *ngIf="account.Platform?.url"
class="mr-1" class="mr-1"
[tooltip]="account.Platform?.name" [tooltip]="account.Platform?.name"

0
libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.html → libs/ui/src/lib/entity-logo/entity-logo.component.html

0
libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.scss → libs/ui/src/lib/entity-logo/entity-logo.component.scss

8
libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.ts → libs/ui/src/lib/entity-logo/entity-logo.component.ts

@ -10,11 +10,11 @@ import { DataSource } from '@prisma/client';
@Component({ @Component({
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-asset-profile-icon', selector: 'gf-entity-logo',
styleUrls: ['./asset-profile-icon.component.scss'], styleUrls: ['./entity-logo.component.scss'],
templateUrl: './asset-profile-icon.component.html' templateUrl: './entity-logo.component.html'
}) })
export class GfAssetProfileIconComponent implements OnChanges { export class GfEntityLogoComponent implements OnChanges {
@Input() dataSource: DataSource; @Input() dataSource: DataSource;
@Input() size: 'large'; @Input() size: 'large';
@Input() symbol: string; @Input() symbol: string;

1
libs/ui/src/lib/entity-logo/index.ts

@ -0,0 +1 @@
export * from './entity-logo.component';

2
libs/ui/src/lib/holdings-table/holdings-table.component.html

@ -10,7 +10,7 @@
<ng-container matColumnDef="icon" sticky> <ng-container matColumnDef="icon" sticky>
<th *matHeaderCellDef class="px-1" mat-header-cell></th> <th *matHeaderCellDef class="px-1" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>
<gf-asset-profile-icon <gf-entity-logo
[dataSource]="element.dataSource" [dataSource]="element.dataSource"
[symbol]="element.symbol" [symbol]="element.symbol"
[tooltip]="element.name" [tooltip]="element.name"

4
libs/ui/src/lib/holdings-table/holdings-table.component.ts

@ -4,7 +4,7 @@ import {
AssetProfileIdentifier, AssetProfileIdentifier,
PortfolioPosition PortfolioPosition
} from '@ghostfolio/common/interfaces'; } from '@ghostfolio/common/interfaces';
import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfValueComponent } from '@ghostfolio/ui/value'; import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
@ -32,7 +32,7 @@ import { Subject, Subscription } from 'rxjs';
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [
CommonModule, CommonModule,
GfAssetProfileIconComponent, GfEntityLogoComponent,
GfSymbolModule, GfSymbolModule,
GfValueComponent, GfValueComponent,
MatButtonModule, MatButtonModule,

Loading…
Cancel
Save