diff --git a/src/app/core/data/notify-services-status-data.service.ts b/src/app/core/data/notify-services-status-data.service.ts index 9c354d0851..6a5fdb6392 100644 --- a/src/app/core/data/notify-services-status-data.service.ts +++ b/src/app/core/data/notify-services-status-data.service.ts @@ -12,7 +12,7 @@ import { RemoteData } from './remote-data'; import { GetRequest } from './request.models'; -@Injectable() +@Injectable({providedIn: 'root'}) @dataService(NOTIFYREQUEST) export class NotifyRequestsStatusDataService extends IdentifiableDataService { diff --git a/src/app/core/notifications/qa/events/quality-assurance-event-data.service.ts b/src/app/core/notifications/qa/events/quality-assurance-event-data.service.ts index e266ace080..d0a3082fec 100644 --- a/src/app/core/notifications/qa/events/quality-assurance-event-data.service.ts +++ b/src/app/core/notifications/qa/events/quality-assurance-event-data.service.ts @@ -34,7 +34,7 @@ import { /** * The service handling all Quality Assurance topic REST requests. */ -@Injectable() +@Injectable({providedIn: 'root'}) @dataService(QUALITY_ASSURANCE_EVENT_OBJECT) export class QualityAssuranceEventDataService extends IdentifiableDataService { diff --git a/src/app/core/notifications/qa/source/quality-assurance-source-data.service.ts b/src/app/core/notifications/qa/source/quality-assurance-source-data.service.ts index f6a58fdd45..e537ed4469 100644 --- a/src/app/core/notifications/qa/source/quality-assurance-source-data.service.ts +++ b/src/app/core/notifications/qa/source/quality-assurance-source-data.service.ts @@ -21,7 +21,7 @@ import { SearchData, SearchDataImpl } from '../../../data/base/search-data'; /** * The service handling all Quality Assurance source REST requests. */ -@Injectable() +@Injectable({providedIn: 'root'}) @dataService(QUALITY_ASSURANCE_SOURCE_OBJECT) export class QualityAssuranceSourceDataService extends IdentifiableDataService { diff --git a/src/app/core/submission/correctiontype-data.service.ts b/src/app/core/submission/correctiontype-data.service.ts index 8a5bbb1fb8..8a4069a48a 100644 --- a/src/app/core/submission/correctiontype-data.service.ts +++ b/src/app/core/submission/correctiontype-data.service.ts @@ -19,7 +19,7 @@ import { getAllSucceededRemoteDataPayload, getPaginatedListPayload } from '../sh /** * A service that provides methods to make REST requests with correctiontypes endpoint. */ -@Injectable() +@Injectable({providedIn: 'root'}) @dataService(CorrectionType.type) export class CorrectionTypeDataService extends IdentifiableDataService { protected linkPath = 'correctiontypes'; diff --git a/src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts b/src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts index bbdcbb18bc..40b5a9ceaf 100644 --- a/src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts +++ b/src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts @@ -10,7 +10,7 @@ import { BrowseDefinition } from '../../../core/shared/browse-definition.model'; import { RemoteData } from '../../../core/data/remote-data'; import { BrowseService } from '../../../core/browse/browse.service'; import { FormsModule } from '@angular/forms'; -import { AsyncPipe, NgForOf } from '@angular/common'; +import { AsyncPipe, NgForOf, NgIf } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; export interface ComColPageNavOption { @@ -34,7 +34,8 @@ export interface ComColPageNavOption { RouterLink, RouterLinkActive, TranslateModule, - AsyncPipe + AsyncPipe, + NgIf ], standalone: true }) diff --git a/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts b/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts index e2b885c3f5..2bf2216745 100644 --- a/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts +++ b/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts @@ -90,6 +90,8 @@ export class ListableObjectComponentLoaderComponent extends AbstractComponentLoa 'showThumbnails', 'viewMode', 'value', + 'showLabel', + 'viewMode' ]; protected outputNames: (keyof this & string)[] = [