Skip to content

Commit

Permalink
Fixes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
Apsu committed Mar 27, 2013
1 parent c85e585 commit 8300eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions source/coffee/dashboard.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ dashboard.parseNodes = (data, keyed={}) ->
dashboard.setWarning node
else if node.task_id?
dashboard.setBusy node
else if node.facts.maintenance_mode
dashboard.setDisabled node
else
dashboard.setGood node

Expand Down Expand Up @@ -335,6 +337,10 @@ dashboard.setGood = (node) ->
node.dash.statusText "Good"
node.dash.locked false

dashboard.setDisabled = (node) ->
node.dash.statusClass "disabled_state"
node.dash.statusText "Disabled"

# Process nodes and map to pin
dashboard.updateNodes = (data, pin, keys) ->
dashboard.mapData dashboard.parseNodes(data, keys), pin
Expand Down
2 changes: 1 addition & 1 deletion source/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ ul.backend-list li {
background-color: #c40022 !important;
}
.disabled_state, .pending_state {
background-color: #ccc !important;
background-color: #999 !important;
color: #666 !important;
}
.processing_state {
Expand Down

0 comments on commit 8300eb6

Please sign in to comment.