Skip to content

Commit

Permalink
reload feature proposal tables after successful vote
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Aug 22, 2018
1 parent fe63cd2 commit acef325
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ app.controller('ServiceDetailFeatureProposalListController', function ($controll
};

$scope.vote = function (fp) {
FeatureProposalRepo.vote(fp);
FeatureProposalRepo.vote(fp).then(function (res) {
var apiRes = angular.fromJson(res.body);
if (apiRes.meta.status === 'SUCCESS') {
$scope.service.getListFeatureProposalsTableParams().reload();
$scope.service.getManagedFeatureProposalsTableParams().reload();
}
});
};

});

0 comments on commit acef325

Please sign in to comment.