#71 fix pod sorting

This commit is contained in:
Henning Jacobs
2016-12-27 19:12:01 +01:00
parent 30efa50174
commit 9f7e9f52bd
2 changed files with 8 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ export default class Node extends PIXI.Graphics {
bars.y = 1
nodeBox.addChild(bars.draw())
nodeBox.addPods(App.sorterFn)
nodeBox.addPods(App.current.sorterFn)
return nodeBox
}
@@ -89,7 +89,7 @@ export default class Node extends PIXI.Graphics {
const nodeBox = this
let px = 24
let py = 20
const pods = sorterFn !== 'undefined' ? this.node.pods.sort(sorterFn) : this.node.pods
const pods = this.node.pods.sort(sorterFn)
for (const pod of pods) {
if (pod.namespace != 'kube-system') {
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip)