mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
fix(container): sort containers alphabetically by name in ExecuteContainerCommand and update filtering in Terminal Index
This commit is contained in:
1 parent
103a9c2df2
commit
cc5abc093d
2 files changed
+7
-1
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user