feat: add voting feature toggle

This commit introduces a new feature toggle 'voting' to enable/disable voting. It also includes minor formatting adjustments in election admin blade files.
This commit is contained in:
fsociety
2024-09-30 20:27:18 +02:00
parent 265ed40839
commit 4568d9e402
3 changed files with 17 additions and 16 deletions

View File

@@ -44,7 +44,7 @@ mount(function () {
->get()
->toArray();
$this->loadEvents();
if ($this->election->end_time->isPast()) {
if ($this->election->end_time->isPast() || !config('services.voting')) {
$this->isNotClosed = false;
}
});