From 38486463bcccef39481b11f784c4e972460fd098 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 22 Apr 2020 09:34:58 +0200 Subject: [PATCH] delete all speakers of all lists of speakers --- client/package.json | 2 +- .../agenda/list-of-speakers-repository.service.ts | 4 ++++ .../components/agenda-list/agenda-list.component.html | 5 +++++ .../components/agenda-list/agenda-list.component.ts | 8 ++++++++ openslides/agenda/views.py | 7 +++++++ 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/client/package.json b/client/package.json index ab8cc9333..f5e9891a7 100644 --- a/client/package.json +++ b/client/package.json @@ -97,7 +97,7 @@ "karma-jasmine": "~3.1.1", "karma-jasmine-html-reporter": "^1.4.0", "npm-license-crawler": "^0.2.1", - "prettier": "^2.0.2", + "prettier": "^2.0.5", "protractor": "^5.4.3", "resize-observer-polyfill": "^1.5.1", "ts-node": "~8.8.1", diff --git a/client/src/app/core/repositories/agenda/list-of-speakers-repository.service.ts b/client/src/app/core/repositories/agenda/list-of-speakers-repository.service.ts index 377ae5796..942ee9ae7 100644 --- a/client/src/app/core/repositories/agenda/list-of-speakers-repository.service.ts +++ b/client/src/app/core/repositories/agenda/list-of-speakers-repository.service.ts @@ -220,6 +220,10 @@ export class ListOfSpeakersRepositoryService extends BaseHasContentObjectReposit await this.httpService.put(restUrl, { speaker: speaker.id }); } + public async deleteAllSpeakersOfAllListsOfSpeakers(): Promise { + await this.httpService.post('/rest/agenda/list-of-speakers/delete_all_speakers/'); + } + /** * Helper function get the url to the speaker rest address * diff --git a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html index c72f8c61f..d6a7d2e0b 100644 --- a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html +++ b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html @@ -121,6 +121,11 @@ {{ 'Import' | translate }} + +