Comment 4 for bug 1763831

Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: [2.4, regression] Details page actions (e.g. machine details) has all actions instead of actions per status

- // Build the available action options control from the
- // allowed actions, except set-zone which does not make
- // sense in this view because the form has this
- // functionality
- angular.forEach($scope.action.allOptions, function(option) {
- if($scope.node.actions.indexOf(option.name) >= 0
- && option.name !== "set-zone") {
- $scope.action.availableOptions.push(option);
- }
- });