Merge pull request #4302 from tsiegleauq/delete-items-from-agenda

Delete agenda items over list
This commit is contained in:
Emanuel Schütze 2019-02-11 18:24:10 +01:00 committed by GitHub
commit 9c68155d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

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
* deleted (right now)
*/
public delete(item: ViewItem): Promise<void> {
throw new Error('Method not implemented.');
public async delete(item: ViewItem): Promise<void> {
const restUrl = `/rest/${item.contentObject.collectionString}/${item.contentObject.id}/`;
return await this.httpService.delete(restUrl);
}
/**