71380: Fix loading/cache issue with dropping objects on page

This commit is contained in:
Kristof De Langhe
2020-06-25 11:09:37 +02:00
parent 28891211e4
commit 73c25998e3
5 changed files with 57 additions and 21 deletions

View File

@@ -196,9 +196,11 @@ export class ItemBitstreamsComponent extends AbstractItemUpdateComponent impleme
path: `/_links/bitstreams/${event.toIndex}/href`
});
this.bundleService.patch(bundle, [moveOperation]).pipe(take(1)).subscribe((response: RestResponse) => {
this.displayNotifications('item.edit.bitstreams.notifications.move', [response]);
this.requestService.removeByHrefSubstring(bundle.self);
this.zone.run(() => event.finish());
this.zone.run(() => {
this.displayNotifications('item.edit.bitstreams.notifications.move', [response]);
this.requestService.removeByHrefSubstring(bundle.self);
event.finish();
});
});
}
});