mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-11 23:53:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user