diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html index 5cbd973b..45101292 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html @@ -33,15 +33,11 @@ {{ org.city }} @if (org.country) { - + [countryCode]="org.country" + [height]="10" + [bordered]="false" /> } } @else { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts index ea6adba6..bf190a58 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts @@ -19,6 +19,7 @@ import { DataTableComponent, GenericColumn, } from '../../../../shared/ui/data-table/data-table.component'; +import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country-flag.component'; @Component({ selector: 'app-organizations-table', @@ -29,6 +30,7 @@ import { CurrencyPipe, DataTableComponent, MatPaginatorModule, + CountryFlagComponent, ], templateUrl: './organizations-table.component.html', styleUrl: './organizations-table.component.scss', @@ -128,20 +130,6 @@ export class OrganizationsTableComponent { this.pageSize.set(event.pageSize); } - getSvgByCountryCode(code: string | undefined | null): string { - if (!code) { - return ''; - } - - const codeLower = code.toLowerCase(); - - if (codeLower === 'uk') { - return 'gb'; - } - - return codeLower; - } - getOrgsCount(): number { return this.orgs?.length || 0; }