mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
93803: Refactor existing data services
This commit is contained in:
@@ -4,7 +4,6 @@ import { Component, Injector, OnInit } from '@angular/core';
|
||||
import { map, switchMap, take, tap } from 'rxjs/operators';
|
||||
|
||||
import { RemoteData } from '../../core/data/remote-data';
|
||||
import { DataService } from '../../core/data/data.service';
|
||||
import { DSpaceObject } from '../../core/shared/dspace-object.model';
|
||||
import { ResourceType } from '../../core/shared/resource-type';
|
||||
import { NotificationOptions } from '../notifications/models/notification-options.model';
|
||||
@@ -17,15 +16,16 @@ import { ProcessTaskResponse } from '../../core/tasks/models/process-task-respon
|
||||
import { getFirstCompletedRemoteData } from '../../core/shared/operators';
|
||||
import { getSearchResultFor } from '../search/search-result-element-decorator';
|
||||
import { MyDSpaceActionsComponent } from './mydspace-actions';
|
||||
import { IdentifiableDataService } from '../../core/data/base/identifiable-data.service';
|
||||
|
||||
/**
|
||||
* Abstract class for all different representations of mydspace actions
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-mydspace-reloadable-actions',
|
||||
template: ''
|
||||
template: '',
|
||||
})
|
||||
export abstract class MyDSpaceReloadableActionsComponent<T extends DSpaceObject, TService extends DataService<T>>
|
||||
export abstract class MyDSpaceReloadableActionsComponent<T extends DSpaceObject, TService extends IdentifiableDataService<T>>
|
||||
extends MyDSpaceActionsComponent<T, TService> implements OnInit {
|
||||
|
||||
protected constructor(
|
||||
@@ -35,7 +35,8 @@ export abstract class MyDSpaceReloadableActionsComponent<T extends DSpaceObject,
|
||||
protected notificationsService: NotificationsService,
|
||||
protected translate: TranslateService,
|
||||
protected searchService: SearchService,
|
||||
protected requestService: RequestService) {
|
||||
protected requestService: RequestService,
|
||||
) {
|
||||
super(objectType, injector, router, notificationsService, translate, searchService, requestService);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user