From 1dacc44afc611519d22a0d80a46ad431731d52ff Mon Sep 17 00:00:00 2001 From: Yury Bondarenko Date: Thu, 25 Apr 2024 14:06:20 +0200 Subject: [PATCH] Fix wrapper defaults --- .../shared/badges/themed-badges.component.ts | 2 +- .../search/search-sidebar/search-sidebar.component.ts | 2 +- .../search-sidebar/themed-search-sidebar.component.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/shared/object-collection/shared/badges/themed-badges.component.ts b/src/app/shared/object-collection/shared/badges/themed-badges.component.ts index dbc9b453072..260c32d2b47 100644 --- a/src/app/shared/object-collection/shared/badges/themed-badges.component.ts +++ b/src/app/shared/object-collection/shared/badges/themed-badges.component.ts @@ -21,7 +21,7 @@ import { BadgesComponent } from './badges.component'; export class ThemedBadgesComponent extends ThemedComponent { @Input() object: DSpaceObject; @Input() context: Context; - @Input() showAccessStatus = false; + @Input() showAccessStatus: boolean; protected inAndOutputNames: (keyof BadgesComponent & keyof this)[] = ['object', 'context', 'showAccessStatus']; diff --git a/src/app/shared/search/search-sidebar/search-sidebar.component.ts b/src/app/shared/search/search-sidebar/search-sidebar.component.ts index f7968ab95d6..54260534277 100644 --- a/src/app/shared/search/search-sidebar/search-sidebar.component.ts +++ b/src/app/shared/search/search-sidebar/search-sidebar.component.ts @@ -44,7 +44,7 @@ export class SearchSidebarComponent { /** * The configuration to use for the search options */ - @Input() configuration; + @Input() configuration: string; /** * The list of available configuration options diff --git a/src/app/shared/search/search-sidebar/themed-search-sidebar.component.ts b/src/app/shared/search/search-sidebar/themed-search-sidebar.component.ts index a7c6af7a7b2..6e9325247f3 100644 --- a/src/app/shared/search/search-sidebar/themed-search-sidebar.component.ts +++ b/src/app/shared/search/search-sidebar/themed-search-sidebar.component.ts @@ -30,15 +30,15 @@ import { SearchSidebarComponent } from './search-sidebar.component'; }) export class ThemedSearchSidebarComponent extends ThemedComponent { - @Input() configuration; + @Input() configuration: string; @Input() configurationList: SearchConfigurationOption[]; @Input() currentScope: string; @Input() currentSortOption: SortOptions; @Input() filters: Observable>; - @Input() resultCount; + @Input() resultCount: number; @Input() viewModeList: ViewMode[]; - @Input() showViewModes = true; - @Input() inPlaceSearch; + @Input() showViewModes: boolean; + @Input() inPlaceSearch: boolean; @Input() searchOptions: PaginatedSearchOptions; @Input() sortOptionsList: SortOptions[]; @Input() refreshFilters: BehaviorSubject;