[CSTPER-3620] Workflow Actions refresh entire MyDSpace page instead of just WorkflowItem

Merge cache part 2
This commit is contained in:
Alessandro Martelli
2021-02-09 14:42:38 +01:00
parent 807d4f5fc7
commit 5f6ad03f6f
9 changed files with 41 additions and 26 deletions

View File

@@ -51,9 +51,17 @@ export class ClaimedApprovedSearchResultListElementComponent extends SearchResul
*/
ngOnInit() {
super.ngOnInit();
this.linkService.resolveLinks(this.dso, followLink('workflowitem', null, true,
followLink('item'), followLink('submitter')
), followLink('action'));
this.linkService.resolveLinks(this.dso,
followLink('workflowitem',
null,
true,
false,
true,
followLink('item'),
followLink('submitter')
),
followLink('action')
);
this.workflowitemRD$ = this.dso.workflowitem as Observable<RemoteData<WorkflowItem>>;
}

View File

@@ -52,9 +52,16 @@ export class ClaimedDeclinedSearchResultListElementComponent extends SearchResul
*/
ngOnInit() {
super.ngOnInit();
this.linkService.resolveLinks(this.dso, followLink('workflowitem', null, true,
followLink('item'), followLink('submitter')
), followLink('action'));
this.linkService.resolveLinks(this.dso,
followLink('workflowitem',
null,
true,
false,
true,
followLink('item'),
followLink('submitter')
),
followLink('action'));
this.workflowitemRD$ = this.dso.workflowitem as Observable<RemoteData<WorkflowItem>>;
}