From 60d6d8b33928a7fd9976d7c4101d5cb0eb4fcd00 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 23 Apr 2024 17:11:38 +0300 Subject: [PATCH] update --- web/app/Livewire/Installer.php | 6 ++++++ web/resources/views/livewire/installer.blade.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/app/Livewire/Installer.php b/web/app/Livewire/Installer.php index 0c2b353..9c3ec3a 100644 --- a/web/app/Livewire/Installer.php +++ b/web/app/Livewire/Installer.php @@ -16,6 +16,7 @@ use Filament\Forms\Components\Radio; use Filament\Forms\Components\Section; use Filament\Forms\Components\Select; use Filament\Forms\Components\TextInput; +use Filament\Forms\Components\Toggle; use Filament\Forms\Components\Wizard; use Filament\Forms\Form; use Filament\Forms\Get; @@ -64,6 +65,8 @@ class Installer extends Page '3.4' ]; + public $enable_email_server = true; + public function form(Form $form): Form { @@ -249,6 +252,9 @@ class Installer extends Page ->description('Configure your email server') ->schema([ + Toggle::make('enable_email_server') + ->label('Enable Email Server') + ->default(true), ])->afterValidation(function () { diff --git a/web/resources/views/livewire/installer.blade.php b/web/resources/views/livewire/installer.blade.php index b16293e..2b1decb 100644 --- a/web/resources/views/livewire/installer.blade.php +++ b/web/resources/views/livewire/installer.blade.php @@ -7,7 +7,7 @@ --}} -
+
{{$this->form}}