mirror of
https://github.com/louislam/dockge.git
synced 2024-10-30 01:10:39 +00:00
Sort non managed stack to the end
This commit is contained in:
parent
027d9e9b59
commit
79552b90a3
1 changed files with 8 additions and 0 deletions
|
@ -152,6 +152,14 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
result.sort((m1, m2) => {
|
result.sort((m1, m2) => {
|
||||||
|
|
||||||
|
// sort by managed by dockge
|
||||||
|
if (m1.isManagedByDockge && !m2.isManagedByDockge) {
|
||||||
|
return -1;
|
||||||
|
} else if (!m1.isManagedByDockge && m2.isManagedByDockge) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (m1.status !== m2.status) {
|
if (m1.status !== m2.status) {
|
||||||
if (m2.status === RUNNING) {
|
if (m2.status === RUNNING) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue