mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
Merge branch 'master' into w2p-70237_entities-orgunit-submission-fix
This commit is contained in:
@@ -11,6 +11,7 @@ import { WorkspaceitemDataService } from '../../../core/submission/workspaceitem
|
||||
import { NotificationsService } from '../../notifications/notifications.service';
|
||||
import { RequestService } from '../../../core/data/request.service';
|
||||
import { SearchService } from '../../../core/shared/search/search.service';
|
||||
import { RestResponse } from '../../../core/cache/response.models';
|
||||
|
||||
/**
|
||||
* This component represents actions related to WorkspaceItem object.
|
||||
@@ -63,9 +64,9 @@ export class WorkspaceitemActionsComponent extends MyDSpaceActionsComponent<Work
|
||||
if (result === 'ok') {
|
||||
this.processingDelete$.next(true);
|
||||
this.objectDataService.delete(this.object.id)
|
||||
.subscribe((response: boolean) => {
|
||||
.subscribe((response: RestResponse) => {
|
||||
this.processingDelete$.next(false);
|
||||
this.handleActionResponse(response);
|
||||
this.handleActionResponse(response.isSuccessful);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user