Skip to content

Commit

Permalink
Added error notification popup on unknown status.
Browse files Browse the repository at this point in the history
  • Loading branch information
jneilliii committed Sep 7, 2017
1 parent eeb1757 commit 22721bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion octoprint_tplinksmartplug/static/js/tplinksmartplug.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ $(function() {
self.turnOn();
break;
default:
console.log(self.currentState());
new PNotify({
title: 'TP-Link Smartplug Error',
text: 'Status ' + self.currentState() + '. Double check ip address in TPLinkSmartplug Settings.',
type: 'error',
hide: false
});
}
}

Expand Down

0 comments on commit 22721bb

Please sign in to comment.