mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-21 08:07:59 +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;
|
vm.isLoggedIn = false;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
vm.user = currentUser.get();
|
vm.user = currentUser.get();
|
||||||
|
console.log('current user:' + angular.toJson(vm.user));
|
||||||
if(angular.isDefined(vm.user)) {
|
if(angular.isDefined(vm.user)) {
|
||||||
vm.isLoggedIn = true;
|
vm.isLoggedIn = true;
|
||||||
}
|
}
|
||||||
});
|
}, 300);
|
||||||
|
|
||||||
vm.setLanguage = setLanguage;
|
vm.setLanguage = setLanguage;
|
||||||
vm.logOut = logOut;
|
vm.logOut = logOut;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
vm.isAdmin = true;
|
vm.isAdmin = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}, 300);
|
||||||
vm.url = $window.location.pathname;
|
vm.url = $window.location.pathname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user