star status shown in normal repo listings

This commit is contained in:
Jimmy Zelinskie 2014-12-30 15:07:14 -05:00
parent 17751eced9
commit 8464b54ad9
5 changed files with 27 additions and 12 deletions

View file

@ -262,8 +262,10 @@ function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {
};
ApiService.createStar(data).then(function(result) {
loadStarredRepos();
loadRepos();
}, function(result) {
loadStarredRepos();
loadRepos();
});
};
@ -273,8 +275,10 @@ function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {
};
ApiService.deleteStar(null, data).then(function(result) {
loadStarredRepos();
loadRepos();
}, function(result) {
loadStarredRepos();
loadRepos();
});
};