mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 03:20:26 +00:00
refactor: migrate database components from legacy model binding to explicit properties
- Remove global 'refresh' event listeners from all database General components - Migrate Redis, MySQL, MariaDB, MongoDB, PostgreSQL, and KeyDB components to use explicit public properties instead of wire:model="database.field" - Implement syncData() method in each component for manual data synchronization between properties and Eloquent models - Update all validation rules, messages, and attributes to reference new property names - Update Blade views to bind inputs to explicit properties (e.g., id="name" instead of id="database.name") - Prepare codebase for disabling Livewire's legacy_model_binding configuration option This refactoring resolves form field reset issues caused by global refresh events and follows Livewire 3 best practices for component property management.
This commit is contained in:
@@ -58,7 +58,6 @@ class General extends Component
|
||||
return [
|
||||
"echo-private:team.{$teamId},DatabaseProxyStopped" => 'databaseProxyStopped',
|
||||
"echo-private:user.{$userId},DatabaseStatusChanged" => '$refresh',
|
||||
'refresh' => '$refresh',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user