Skip to content

Commit

Permalink
proper labels for the notifications that are incoming
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonywebb committed Nov 29, 2014
1 parent 31321ca commit 9ef1d6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/js/cbus.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ socket.on('statusStream', function (data) {
msg = msg + ' in the ' + data.location;
}

msg = msg + ' is ' + data.status.toUpperCase();
if(data.level == 100 || data.level == 0){
msg = msg + ' is ' + data.status.toUpperCase();
} else {
msg = msg + ' dimmed to ' + data.level +'%';
}

alertify.log(msg);

Expand Down

0 comments on commit 9ef1d6b

Please sign in to comment.