Allow resetting the whole poll from the dashboard
Deletes all responses of all slides, puts every slide back to its initial state and restarts the presentation. Slides, settings, links and the join code are kept. The per-slide reset shares the logic via ResetService and now also reopens closed slides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee593da0e6
commit
e1b327899f
8 files changed
+247
-15
No files matched your search
@@ -99,6 +99,18 @@ class Poll extends Entity
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Back to "not started": no slide live, nothing to resume. Idempotent.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function restart(): void
|
||||
{
|
||||
$this->current_slide_id = null;
|
||||
$this->paused_slide_id = null;
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool Paused after a slide had been live (not: not started yet)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user