Revert some changes

This commit is contained in:
kunw 2016-09-30 14:33:05 +08:00
parent ce9ba33ccd
commit 1c41087260
2 changed files with 2 additions and 9 deletions

View File

@ -154,7 +154,7 @@
function deleteRepositorySuccess(data, status) {
vm.toggleInProgress[vm.repoName + '|' + vm.tag] = false;
$scope.$broadcast('refreshTags', true);
vm.retrieve();
}
function deleteRepositoryFailed(data, status) {

View File

@ -32,14 +32,7 @@
function getCurrentUserComplete(response) {
if(angular.isDefined(response)) {
var user = response.data;
currentUser.set({
'user_id': user.user_id,
'username': user.username,
'role_name': user.role_name,
'email': user.email,
'realname': user.realname,
'comment': user.comment});
currentUser.set(response.data);
if(location.pathname === '/') {
$window.location.href = '/dashboard';
}