[TLC-380] WIP trying new routing / create flow

This commit is contained in:
Kim Shepherd
2023-02-01 16:30:44 +13:00
parent ce84c3fe36
commit e86f0d3d13
3 changed files with 49 additions and 5 deletions

View File

@@ -82,13 +82,13 @@ export class ItemRegisterDoiComponent extends AbstractSimpleItemActionComponent
*/
registerDoi() {
this.processing = true;
this.itemDataService.registerDOI(this.item.id).pipe(getFirstCompletedRemoteData()).subscribe(
this.identifierDataService.registerIdentifier(this.item, 'doi').subscribe(
(response: RemoteData<Item>) => {
this.processing = false;
//this.router.navigateByUrl(getItemEditRoute(this.item));
this.processRestResponse(response);
}
);
)
}
}