mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
Revert some changes
This commit is contained in:
parent
ce9ba33ccd
commit
1c41087260
@ -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) {
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user