Skip to content

Commit 44e69cf

Browse files
1 parent 7fe191d commit 44e69cf

8 files changed

Lines changed: 13 additions & 11 deletions

src/app/shared/browse-most-elements/browse-most-elements.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<ng-container *ngSwitchDefault>
44
<ds-themed-default-browse-elements
5+
[showMetrics]="showMetrics"
56
[showThumbnails]="topSection.showThumbnails"
67
[topSection]="topSection"
78
[showLabel]="showLabel"

src/app/shared/browse-most-elements/browse-most-elements.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export class BrowseMostElementsComponent implements OnInit, OnChanges {
1515
@Input() paginatedSearchOptions: PaginatedSearchOptions;
1616

1717
@Input() context: Context;
18-
/**
19-
* Whether to show the badge label or not
20-
*/
21-
@Input() showLabel: boolean;
18+
19+
showLabel: boolean;
20+
21+
showMetrics = true;
2222

2323
@Input() topSection: TopSection;
2424

src/app/shared/browse-most-elements/default-browse-elements/default-browse-elements.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[listID]="paginatedSearchOptions.configuration"
88
[object]="object"
99
[showMetrics]="showMetrics"
10+
[showLabel]="showLabel"
1011
[showThumbnails]="showThumbnails"
1112
[viewMode]="paginatedSearchOptions.view"></ds-listable-object-component-loader>
1213
</li>

src/app/shared/browse-most-elements/default-browse-elements/default-browse-elements.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ export class DefaultBrowseElementsComponent extends AbstractBrowseElementsCompon
1818
*/
1919
@Input() showThumbnails = this.appConfig.browseBy.showThumbnails;
2020

21+
@Input() showLabel: boolean;
22+
2123
protected followThumbnailLink = true;
2224
}

src/app/shared/browse-most-elements/default-browse-elements/themed-default-browse-elements.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export class ThemedDefaultBrowseElementsComponent extends ThemedComponent<Defaul
2929

3030
@Input() showThumbnails: boolean;
3131

32-
protected inAndOutputNames: (keyof DefaultBrowseElementsComponent & keyof this)[] = ['paginatedSearchOptions', 'context', 'topSection', 'showMetrics', 'showThumbnails'];
32+
@Input() showLabel: boolean;
33+
34+
protected inAndOutputNames: (keyof DefaultBrowseElementsComponent & keyof this)[] = ['paginatedSearchOptions', 'context', 'topSection', 'showMetrics', 'showThumbnails', 'showLabel'];
3335

3436
protected getComponentName(): string {
3537
return 'DefaultBrowseElementsComponent';

src/app/shared/browse-most-elements/themed-browse-most-elements.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export class ThemedBrowseMostElementsComponent extends ThemedComponent<BrowseMos
2121

2222
@Input() topSection: TopSection;
2323

24-
@Input() showLabel: boolean;
25-
26-
protected inAndOutputNames: (keyof BrowseMostElementsComponent & keyof this)[] = ['context', 'paginatedSearchOptions', 'topSection', 'showLabel'];
24+
protected inAndOutputNames: (keyof BrowseMostElementsComponent & keyof this)[] = ['context', 'paginatedSearchOptions', 'topSection'];
2725

2826
protected getComponentName(): string {
2927
return 'BrowseMostElementsComponent';

src/app/shared/explore/section-component/top-section/top-section.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div *ngIf="topSection.titleKey" class="card-header">{{ 'explore.index.' + topSection.titleKey | translate }}</div>
44
<div *ngIf="!topSection.titleKey" class="card-header">{{ 'explore.index.' + topSection.sortField | translate }}</div>
55
<div class="card-body p-0">
6-
<ds-themed-browse-most-elements [context]="context" [paginatedSearchOptions]="paginatedSearchOptions" [topSection]="topSection" [showLabel]="showLabel"></ds-themed-browse-most-elements>
6+
<ds-themed-browse-most-elements [context]="context" [paginatedSearchOptions]="paginatedSearchOptions" [topSection]="topSection"></ds-themed-browse-most-elements>
77
</div>
88
</div>
99
</div>

src/app/shared/explore/section-component/top-section/top-section.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export class TopSectionComponent implements OnInit {
2626

2727
paginatedSearchOptions: PaginatedSearchOptions;
2828

29-
showLabel: boolean;
30-
3129
ngOnInit() {
3230
const order = this.topSection.order;
3331
const numberOfItems = this.topSection.numberOfItems;

0 commit comments

Comments
 (0)