99053: Invalidate cache by default when performing the WorkflowItemActionPageComponent action

This commit is contained in:
Alexandre Vryghem
2023-02-06 18:20:39 +01:00
parent 581afbbbb6
commit 34e970827e
10 changed files with 43 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ export class WorkflowItemDeleteComponent extends WorkflowItemActionPageComponent
protected notificationsService: NotificationsService,
protected translationService: TranslateService,
protected requestService: RequestService) {
super(route, workflowItemService, router, routeService, notificationsService, translationService);
super(route, workflowItemService, router, routeService, notificationsService, translationService, requestService);
}
/**
@@ -42,7 +42,6 @@ export class WorkflowItemDeleteComponent extends WorkflowItemActionPageComponent
* @param id The id of the WorkflowItem
*/
sendRequest(id: string): Observable<boolean> {
this.requestService.removeByHrefSubstring('/discover');
return this.workflowItemService.delete(id).pipe(
getFirstCompletedRemoteData(),
map((response: RemoteData<NoContent>) => response.hasSucceeded)