From 6dc5c3bfa9a7f80d28ef876ebafc590be0d2c5e1 Mon Sep 17 00:00:00 2001 From: Sean Date: Wed, 26 May 2021 17:53:46 +0200 Subject: [PATCH] stop-voting shows prompt Stop voting shows options to either simply stop, publish directly or abort. Was done using choice service. Alter vote repo to simply choose with voting state to adress rather than calculate the next state Add server-side option to publish a poll in the started state --- .../assignment-poll.component.html | 2 +- .../assignment-poll.component.ts | 4 +- .../motion-poll/motion-poll.component.html | 2 +- .../motion-poll/motion-poll.component.ts | 4 +- .../polls/components/base-poll.component.ts | 55 +++++++++++-------- .../services/base-poll-repository.service.ts | 16 ++---- server/openslides/poll/views.py | 6 +- .../tests/integration/motions/test_polls.py | 23 ++++++++ 8 files changed, 74 insertions(+), 38 deletions(-) diff --git a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll/assignment-poll.component.html b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll/assignment-poll.component.html index dbcbc2446..c6f5f6986 100644 --- a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll/assignment-poll.component.html +++ b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll/assignment-poll.component.html @@ -48,7 +48,7 @@