mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix workload overview status sorting (#3486)
* Sort statuses allowing 'running' to be first Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix Chart legend badges Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding getStatus() tests for each store Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
fd5881fe33
commit
89662103a8
17 files changed
+1322
-14
No files matched your search
@@ -70,7 +70,7 @@ export class PodsStore extends KubeObjectStore<Pod> {
|
||||
}
|
||||
|
||||
getStatuses(pods: Pod[]) {
|
||||
return countBy(pods.map(pod => pod.getStatus()));
|
||||
return countBy(pods.map(pod => pod.getStatus()).sort().reverse());
|
||||
}
|
||||
|
||||
getPodKubeMetrics(pod: Pod) {
|
||||
|
||||
Reference in new issue
Block a user