Skip to content

Commit

Permalink
Polished tomcat plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Mar 30, 2013
1 parent b0d3f14 commit 2e0324f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hawtio-web/src/main/webapp/app/tomcat/js/helpers.ts
Expand Up @@ -24,13 +24,11 @@ module Tomcat {
}
}

try {
// Tomcat 5 uses 0 for stopped
if (state !== null && state.toString() === '0') {
// Tomcat 5 uses 0 for stopped
if (angular.isNumber(state)) {
if (state.toString() === '0') {
return "red icon-stop";
}
} catch (Exception) {
// just to be safe if state is undefined
}

return "icon-question-sign";
Expand Down

0 comments on commit 2e0324f

Please sign in to comment.