From 1bf96939522a6f0f374640b0d1f076fd07013356 Mon Sep 17 00:00:00 2001 From: Yana De Pauw Date: Mon, 12 Aug 2019 15:53:10 +0200 Subject: [PATCH] 63838: Add typedoc comments and fix unused method --- .../edit-item-page/edit-item-page.routing.module.ts | 5 ----- src/app/core/data/item-data.service.ts | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts b/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts index a3f57feec8..0c8dd407f9 100644 --- a/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts +++ b/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts @@ -22,11 +22,6 @@ const ITEM_EDIT_DELETE_PATH = 'delete'; const ITEM_EDIT_MOVE_PATH = 'move'; -export function getItemEditMovePath(id: string) { - return new URLCombiner(getItemEditPath(id), ITEM_EDIT_MOVE_PATH); - -} - /** * Routing module that handles the routing for the Edit Item page administrator functionality */ diff --git a/src/app/core/data/item-data.service.ts b/src/app/core/data/item-data.service.ts index 9d686d98d1..07d8ed8405 100644 --- a/src/app/core/data/item-data.service.ts +++ b/src/app/core/data/item-data.service.ts @@ -122,6 +122,10 @@ export class ItemDataService extends DataService { ); } + /** + * Get the endpoint to move the item + * @param itemId + */ public getMoveItemEndpoint(itemId: string): Observable { return this.halService.getEndpoint(this.linkPath).pipe( map((endpoint: string) => this.getIDHref(endpoint, itemId)), @@ -129,6 +133,11 @@ export class ItemDataService extends DataService { ); } + /** + * Move the item to a different owning collection + * @param itemId + * @param collection + */ public moveToCollection(itemId: string, collection: Collection): Observable { const options: HttpOptions = Object.create({}); let headers = new HttpHeaders();