Skip to content

Commit

Permalink
Sort non managed stack to the end (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam authored Dec 3, 2023
1 parent 027d9e9 commit a3c4082
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/components/StackList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ export default {
});
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 (m2.status === RUNNING) {
return 1;
Expand Down

0 comments on commit a3c4082

Please sign in to comment.