From 5e5fc4a499a6197cd4c6c81e6cb093176e80acbc Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Mon, 11 Feb 2019 16:52:41 +0100 Subject: [PATCH] Delete agenda items over list Implements the deletion logic for agenda items from the agenda list view --- .../app/core/repositories/agenda/item-repository.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/core/repositories/agenda/item-repository.service.ts b/client/src/app/core/repositories/agenda/item-repository.service.ts index 9be72a73b..8543336bd 100644 --- a/client/src/app/core/repositories/agenda/item-repository.service.ts +++ b/client/src/app/core/repositories/agenda/item-repository.service.ts @@ -232,8 +232,9 @@ export class ItemRepositoryService extends BaseRepository { * from the agenda" permanently. Usually, items might juse be hidden but not * deleted (right now) */ - public delete(item: ViewItem): Promise { - throw new Error('Method not implemented.'); + public async delete(item: ViewItem): Promise { + const restUrl = `/rest/${item.contentObject.collectionString}/${item.contentObject.id}/`; + return await this.httpService.delete(restUrl); } /**