Fix subscription display for project groups
Subscriptions for project groups were updating but not displaying. This patch makes the subscriptions display correctly. Change-Id: Ia29ac1e3bc0b747639d575a1ef59fb1b5cfb6389
This commit is contained in:
parent
010a770214
commit
d22fa7cbd4
@ -18,7 +18,8 @@
|
||||
* Administration controller for project groups.
|
||||
*/
|
||||
angular.module('sb.project_group').controller('ProjectGroupAdminController',
|
||||
function ($scope, $modal, ProjectGroup, Preference, isSuperuser) {
|
||||
function ($scope, $modal, ProjectGroup, Preference, isSuperuser,
|
||||
CurrentUser, SubscriptionList) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
@ -37,6 +38,16 @@ angular.module('sb.project_group').controller('ProjectGroupAdminController',
|
||||
*/
|
||||
$scope.filterQuery = '';
|
||||
|
||||
//GET list of project group subscriptions
|
||||
var cuPromise = CurrentUser.resolve();
|
||||
|
||||
cuPromise.then(function(user){
|
||||
$scope.projectGroupSubscriptions =
|
||||
SubscriptionList.subsList(
|
||||
'project_group', user);
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Launches the add-project-group modal.
|
||||
*/
|
||||
|
@ -99,7 +99,8 @@
|
||||
ng-show="isLoggedIn">
|
||||
<subscribe
|
||||
resource="project_group"
|
||||
resource-id="projectGroup.id">
|
||||
resource-id="projectGroup.id"
|
||||
subscriptions="projectGroupSubscriptions">
|
||||
</subscribe>
|
||||
</a>
|
||||
<a class="btn btn-link "
|
||||
|
Loading…
x
Reference in New Issue
Block a user