Skip to content

Commit

Permalink
fix cmd not being removable
Browse files Browse the repository at this point in the history
  • Loading branch information
guirem committed Feb 16, 2020
1 parent 803f025 commit 1564062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/js/googlecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function addCmdToTable(_cmd) {
var _cmd = {configuration: {}};
}
var tr = '';
if ( (_cmd.logicalId != null) && _cmd.configuration.googlecast_cmd!==undefined ) {
if ( (_cmd.logicalId != null) && _cmd.configuration.googlecast_cmd===true ) {
tr = '<tr class="cmd" data-cmd_id="' + init(_cmd.id) + '" style="background:#F2F2F2">';
tr += '<td>';
tr += '<div style="width:250px;">';
Expand Down Expand Up @@ -209,7 +209,7 @@ function addCmdToTable(_cmd) {
tr += '<a class="btn btn-default btn-xs cmdAction" data-action="configure"><i class="fa fa-cogs"></i></a> ';
tr += '<a class="btn btn-default btn-xs cmdAction" data-action="test"><i class="fa fa-rss"></i> Tester</a>';
}
if (_cmd.configuration.googlecast_cmd_mod===undefined) {
if (_cmd.configuration.googlecast_cmd_mod!==true) {
tr += '<br><center><i class="fa fa-minus-circle cmdAction cursor" style="margin-top:10px;font-size:18px;color:red" data-action="remove"></i></center></td>';
}
}
Expand Down

0 comments on commit 1564062

Please sign in to comment.