mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix(container): sort containers alphabetically by name in ExecuteContainerCommand and update filtering in Terminal Index
This commit is contained in:
parent
103a9c2df2
commit
cc5abc093d
2 changed files with 7 additions and 1 deletions
|
|
@ -132,6 +132,12 @@ class ExecuteContainerCommand extends Component
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Sort containers alphabetically by name
|
||||
$this->containers = $this->containers->sortBy(function ($container) {
|
||||
return data_get($container, 'container.Names');
|
||||
});
|
||||
|
||||
if ($this->containers->count() === 1) {
|
||||
$this->selected_container = data_get($this->containers->first(), 'container.Names');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class Index extends Component
|
|||
|
||||
return null;
|
||||
})->filter();
|
||||
});
|
||||
})->sortBy('name');
|
||||
}
|
||||
|
||||
public function updatedSelectedUuid()
|
||||
|
|
|
|||
Loading…
Reference in a new issue