Browse Source

EntityLogoImageSourceService configured singleton

pull/5192/head
Attila Cseh 3 weeks ago
parent
commit
b13047063b
  1. 4
      libs/ui/src/lib/entity-logo/entity-logo-image-source.service.ts
  2. 1
      libs/ui/src/lib/entity-logo/entity-logo.component.ts

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

@ -1,7 +1,9 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { DataSource } from '@prisma/client'; import { DataSource } from '@prisma/client';
@Injectable() @Injectable({
providedIn: 'root'
})
export class EntityLogoImageSourceService { export class EntityLogoImageSourceService {
public getLogoUrlByDataSourceAndSymbol( public getLogoUrlByDataSourceAndSymbol(
dataSource: DataSource, dataSource: DataSource,

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

@ -13,7 +13,6 @@ import { DataSource } from '@prisma/client';
@Component({ @Component({
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
imports: [CommonModule], imports: [CommonModule],
providers: [EntityLogoImageSourceService],
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-entity-logo', selector: 'gf-entity-logo',
styleUrls: ['./entity-logo.component.scss'], styleUrls: ['./entity-logo.component.scss'],

Loading…
Cancel
Save