mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-05 05:02:06 +00:00
chore: Refactor terminal component and select form layout
This commit is contained in:
@@ -7,7 +7,7 @@ use Livewire\Component;
|
||||
|
||||
class RunCommand extends Component
|
||||
{
|
||||
public $selected_uuid;
|
||||
public $selected_uuid = 'default';
|
||||
|
||||
public $servers = [];
|
||||
|
||||
@@ -16,7 +16,6 @@ class RunCommand extends Component
|
||||
public function mount($servers)
|
||||
{
|
||||
$this->servers = $servers;
|
||||
$this->selected_uuid = $servers[0]->uuid;
|
||||
$this->containers = $this->getAllActiveContainers();
|
||||
}
|
||||
|
||||
@@ -83,6 +82,11 @@ class RunCommand extends Component
|
||||
});
|
||||
}
|
||||
|
||||
public function updatedSelectedUuid($value)
|
||||
{
|
||||
$this->connectToContainer();
|
||||
}
|
||||
|
||||
#[On('connectToContainer')]
|
||||
public function connectToContainer()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user