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 { DataSource } from '@prisma/client';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class EntityLogoImageSourceService {
public getLogoUrlByDataSourceAndSymbol(
dataSource: DataSource,

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

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

Loading…
Cancel
Save