star status shown in normal repo listings
This commit is contained in:
parent
17751eced9
commit
8464b54ad9
5 changed files with 27 additions and 12 deletions
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue