Merge branch 'master' into w2p-70237_entities-orgunit-submission-fix

This commit is contained in:
Art Lowel
2020-04-28 17:45:29 +02:00
188 changed files with 37538 additions and 5366 deletions

View File

@@ -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);
})
}
}