Skip to content

Commit

Permalink
suggestions and fix seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger committed Dec 4, 2024
1 parent ab4d02a commit b328c06
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static function form(Form $form): Form
->schema([
Forms\Components\Toggle::make('active')
->label('Activate User')
->dehydrated(false)
->hidden(fn ($record) => $record && !$record->active)
->onColor('success'),
Forms\Components\Actions::make([
Expand Down
1 change: 1 addition & 0 deletions app/Filament/Resources/UserResource/Pages/EditUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ protected function getRedirectUrl(): string
public function setVerifiedEmail(): void
{
$this->record->markEmailAsVerified();
$this->refreshFormData(['active']);
}
}
1 change: 0 additions & 1 deletion database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function run()
$this->call([
LocalTestDataSeeder::class,
]);
$this->call(JournalsTableSeeder::class);
}
}
}
Expand Down

0 comments on commit b328c06

Please sign in to comment.