mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
61142: EditRelationshipList component to proper reload relationships and fix performance issues
This commit is contained in:
@@ -265,4 +265,15 @@ export class RequestService {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an observable that emits a new value whenever the availability of the cached request changes.
|
||||
* The value it emits is a boolean stating if the request exists in cache or not.
|
||||
* @param href The href of the request to observe
|
||||
*/
|
||||
hasByHrefObservable(href: string): Observable<boolean> {
|
||||
return this.getByHref(href).pipe(
|
||||
map((requestEntry: RequestEntry) => this.isValid(requestEntry))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user