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 @@ public function loadContainers()
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 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 @@ private function getAllActiveContainers()
|
|||
|
||||
return null;
|
||||
})->filter();
|
||||
});
|
||||
})->sortBy('name');
|
||||
}
|
||||
|
||||
public function updatedSelectedUuid()
|
||||
|
|
|
|||
Loading…
Reference in a new issue