mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-5307] Remove setStaleByHrefSubstring
This commit is contained in:
@@ -6,7 +6,7 @@ import { Router } from '@angular/router';
|
|||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { ReplaceOperation } from 'fast-json-patch';
|
import { ReplaceOperation } from 'fast-json-patch';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { find, map, tap } from 'rxjs/operators';
|
import { find, map } from 'rxjs/operators';
|
||||||
|
|
||||||
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||||
import { dataService } from '../cache/builders/build-decorators';
|
import { dataService } from '../cache/builders/build-decorators';
|
||||||
@@ -108,11 +108,6 @@ export class ResearcherProfileService {
|
|||||||
public delete(researcherProfile: ResearcherProfile): Observable<boolean> {
|
public delete(researcherProfile: ResearcherProfile): Observable<boolean> {
|
||||||
return this.dataService.delete(researcherProfile.id).pipe(
|
return this.dataService.delete(researcherProfile.id).pipe(
|
||||||
getFirstCompletedRemoteData(),
|
getFirstCompletedRemoteData(),
|
||||||
tap((response: RemoteData<NoContent>) => {
|
|
||||||
if (response.isSuccess) {
|
|
||||||
this.requestService.setStaleByHrefSubstring(researcherProfile._links.self.href);
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
map((response: RemoteData<NoContent>) => response.isSuccess)
|
map((response: RemoteData<NoContent>) => response.isSuccess)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user