Skip to content

Commit

Permalink
Do not include $status when restrictAttribute is set to a different a…
Browse files Browse the repository at this point in the history
…ttribute
  • Loading branch information
idpaterson committed Feb 29, 2024
1 parent 3774095 commit c33f44f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/js/modules/piston.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,9 @@ config.controller('piston', ['$scope', '$rootScope', 'dataService', 'colorScheme
result.push({id: 'axisZ', n: 'Z axis', t:'decimal'});
result.push({id: 'orientation', n: 'orientation', t:'string'});
}
result.push({id: statusAttribute, n: '⌂ ' + statusAttribute, t:'string'});
if (!restrictAttribute || restrictAttribute == 'status') {
result.push({id: statusAttribute, n: '⌂ ' + statusAttribute, t:'string'});
}
result.sort($scope.sortByName);

// Add attributes from a subset of devices
Expand Down

0 comments on commit c33f44f

Please sign in to comment.