hawtio / hawtio-kubernetes

hawtio plugin for working with kubernetes
Apache License 2.0
24 stars 14 forks source link

Pod does not update status icon when pod is running #39

Closed davsclaus closed 9 years ago

davsclaus commented 9 years ago

eg the status icon may show a download / pending state. And then a while later the image is downloaded and the pod is in running state.

The oc get pods shows the running state.

Leaving the web ui for about 1h or so (I was out) then came back and the UI still have the status icon as downloading. The pods has been running for 1h

screen shot 2015-06-23 at 11 30 16 am

jstrachan commented 9 years ago

tried to fix this one - polished the code so am sure we definitely update the $statusCss property on a pod - but for some reason dynamically changing the css style inside:

    <i class="fa {{entity.$statusCss}}"></i>

does not actually refresh the icon. I suspect its a bootstrap issue? We may need a directive to deal with dynamic icons maybe...

gashcrumb commented 9 years ago

Most likely it's because 'entity' is different when an update occurs and what's displayed has a handle on the old instance instead.

gashcrumb commented 9 years ago

This should be alright now if you don't mind checking after a bower update

jstrachan commented 9 years ago

awesome - its working great now!!!