Reset poll to "not started" and keep prepared Q&A questions
Resetting a poll now also clears the live/paused slide so the presentation starts over. Questions entered beforehand on Q&A slides are kept by default (only their upvotes are removed); the dashboard offers a checkbox to delete them too. Resetting a single slide always keeps them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19320f01c4
commit
97a60290b4
7 files changed
+119
-22
No files matched your search
@@ -109,6 +109,18 @@ class Poll extends Entity
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Back to "not started": neither live nor paused. Idempotent.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function notStarted(): void
|
||||
{
|
||||
$this->current_slide_id = null;
|
||||
$this->paused_slide_id = null;
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* A slide leaves the presentation (deleted or hidden). If it was live or is the one a pause
|
||||
* resumes, the poll pauses and resumes with $resumeSlideId instead (null: no slides left =
|
||||
|
||||
Reference in new issue
Block a user