mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
add getFirstCompletedRemoteData, remove force redownload of owningcollection
This commit is contained in:
@@ -7,7 +7,10 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|||||||
import { NotificationsService } from '../../../shared/notifications/notifications.service';
|
import { NotificationsService } from '../../../shared/notifications/notifications.service';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
import {
|
import {
|
||||||
getAllSucceededRemoteDataPayload, getFirstCompletedRemoteData, getFirstSucceededRemoteData, getRemoteDataPayload,
|
getAllSucceededRemoteDataPayload,
|
||||||
|
getFirstCompletedRemoteData,
|
||||||
|
getFirstSucceededRemoteData,
|
||||||
|
getRemoteDataPayload,
|
||||||
} from '../../../core/shared/operators';
|
} from '../../../core/shared/operators';
|
||||||
import { ItemDataService } from '../../../core/data/item-data.service';
|
import { ItemDataService } from '../../../core/data/item-data.service';
|
||||||
import { Observable, of as observableOf } from 'rxjs';
|
import { Observable, of as observableOf } from 'rxjs';
|
||||||
@@ -114,8 +117,14 @@ export class ItemMoveComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
move$.pipe(
|
move$.pipe(
|
||||||
switchMap(() => this.itemDataService.findById(
|
switchMap(() =>
|
||||||
this.item.id, false, true, followLink('owningCollection', undefined, true, false)))
|
this.itemDataService.findById(
|
||||||
|
this.item.id,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
followLink('owningCollection')
|
||||||
|
)),
|
||||||
|
getFirstCompletedRemoteData()
|
||||||
).subscribe(() => {
|
).subscribe(() => {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
this.router.navigate([getItemEditRoute(this.item)]);
|
this.router.navigate([getItemEditRoute(this.item)]);
|
||||||
|
Reference in New Issue
Block a user