Skip to content

Commit

Permalink
Copy missing code to Permissions Scheduled Changes controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Oct 24, 2017
1 parent f91aa6b commit 289a2bd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ui/app/js/controllers/permission_scheduled_changes_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module("app").controller("PermissionScheduledChangesController",
function($scope, $routeParams, $location, $timeout, Permissions, Rules, Search, $modal, $route, Releases, Page) {
function($scope, $routeParams, $location, $timeout, Permissions, Rules, Search, $modal, $route, Releases, Page,
PermissionsRequiredSignoffs) {

Page.setTitle('Scheduled Permission Changes');

Expand Down Expand Up @@ -40,6 +41,11 @@ function($scope, $routeParams, $location, $timeout, Permissions, Rules, Search,
$scope.loading = false;
});

$scope.signoffRequirements = [];
PermissionsRequiredSignoffs.getRequiredSignoffs()
.then(function(payload) {
$scope.signoffRequirements = payload.data.required_signoffs;
});

$scope.$watch("ordering_str", function(value) {
$scope.ordering = value.value.split(",");
Expand Down Expand Up @@ -124,7 +130,10 @@ function($scope, $routeParams, $location, $timeout, Permissions, Rules, Search,
product: '',
change_type: 'insert',
};
}
},
permissionSignoffRequirements: function() {
return $scope.signoffRequirements;
},
}
});
};
Expand Down

0 comments on commit 289a2bd

Please sign in to comment.