mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Remove cached search request after result was retrieved
This commit is contained in:
@@ -112,7 +112,6 @@ export class ResourcePoliciesComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.isActive = true;
|
this.isActive = true;
|
||||||
this.requestService.removeByHrefSubstring(this.resourceUUID);
|
|
||||||
this.initResourcePolicyLIst();
|
this.initResourcePolicyLIst();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,7 +134,6 @@ export class ResourcePoliciesComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
deleteSelectedResourcePolicies(): void {
|
deleteSelectedResourcePolicies(): void {
|
||||||
this.processingDelete$.next(true);
|
this.processingDelete$.next(true);
|
||||||
this.requestService.removeByHrefSubstring(this.resourceUUID);
|
|
||||||
const policiesToDelete: ResourcePolicyCheckboxEntry[] = this.resourcePoliciesEntries$.value
|
const policiesToDelete: ResourcePolicyCheckboxEntry[] = this.resourcePoliciesEntries$.value
|
||||||
.filter((entry: ResourcePolicyCheckboxEntry) => entry.checked);
|
.filter((entry: ResourcePolicyCheckboxEntry) => entry.checked);
|
||||||
this.subs.push(
|
this.subs.push(
|
||||||
@@ -258,6 +256,8 @@ export class ResourcePoliciesComponent implements OnInit, OnDestroy {
|
|||||||
checked: false
|
checked: false
|
||||||
}));
|
}));
|
||||||
this.resourcePoliciesEntries$.next(entries);
|
this.resourcePoliciesEntries$.next(entries);
|
||||||
|
// Remove cached request
|
||||||
|
this.requestService.removeByHrefSubstring(this.resourceUUID);
|
||||||
this.cdr.detectChanges();
|
this.cdr.detectChanges();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user