Delete agenda items over list

Implements the deletion logic for agenda items from the agenda list view
This commit is contained in:
Sean Engelhardt 2019-02-11 16:52:41 +01:00
parent 7dd086eacf
commit 5e5fc4a499

View File

@ -232,8 +232,9 @@ export class ItemRepositoryService extends BaseRepository<ViewItem, Item> {
* from the agenda" permanently. Usually, items might juse be hidden but not * from the agenda" permanently. Usually, items might juse be hidden but not
* deleted (right now) * deleted (right now)
*/ */
public delete(item: ViewItem): Promise<void> { public async delete(item: ViewItem): Promise<void> {
throw new Error('Method not implemented.'); const restUrl = `/rest/${item.contentObject.collectionString}/${item.contentObject.id}/`;
return await this.httpService.delete(restUrl);
} }
/** /**