use country-flag component in person-list filter chip
This commit is contained in:
@@ -69,15 +69,11 @@
|
||||
institutionFilterLabel(filter)
|
||||
}}</span>
|
||||
@if (filter.countryCode) {
|
||||
<img
|
||||
alt=""
|
||||
<app-country-flag
|
||||
class="filter-institution-chip__flag"
|
||||
[src]="
|
||||
'https://flagcdn.io/' +
|
||||
filter.countryCode.toLowerCase() +
|
||||
'.svg'
|
||||
"
|
||||
height="10" />
|
||||
[countryCode]="filter.countryCode"
|
||||
[height]="10"
|
||||
[bordered]="false" />
|
||||
<span class="filter-institution-chip__country">{{
|
||||
filter.countryCode.toUpperCase()
|
||||
}}</span>
|
||||
|
||||
@@ -25,6 +25,7 @@ import {
|
||||
import { TopicsService } from '../../api/api/topics.service';
|
||||
import { TopicHierarchyComponent } from '../topic-hierarchy/topic-hierarchy.component';
|
||||
import { PersonCardComponent } from '../person-card/person-card.component';
|
||||
import { CountryFlagComponent } from '../../shared/ui/country-flag/country-flag.component';
|
||||
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
|
||||
import { buildTopicHierarchyTooltip } from '../../resolvers/utils/topic-tooltip';
|
||||
import { SharedStateService } from '../../shared/services/shared-state.service';
|
||||
@@ -65,6 +66,7 @@ type InstitutionYearFilterMode = 'in' | 'from' | 'between';
|
||||
PersonCardComponent,
|
||||
SkTextDirective,
|
||||
MatAutocompleteModule,
|
||||
CountryFlagComponent,
|
||||
],
|
||||
templateUrl: './person-list.component.html',
|
||||
styleUrl: './person-list.component.scss',
|
||||
|
||||
Reference in New Issue
Block a user