mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
update timeout for getting data from cookies.
This commit is contained in:
parent
09db2d04d0
commit
758a02c715
@ -18,10 +18,11 @@
|
||||
vm.isLoggedIn = false;
|
||||
$timeout(function() {
|
||||
vm.user = currentUser.get();
|
||||
console.log('current user:' + angular.toJson(vm.user));
|
||||
if(angular.isDefined(vm.user)) {
|
||||
vm.isLoggedIn = true;
|
||||
}
|
||||
});
|
||||
}, 300);
|
||||
|
||||
vm.setLanguage = setLanguage;
|
||||
vm.logOut = logOut;
|
||||
|
@ -22,7 +22,7 @@
|
||||
vm.isAdmin = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 300);
|
||||
vm.url = $window.location.pathname;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user