mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 17:51:06 -03:30
adding check for missing session time from local storage
for gracefully failing if session time isn't set
This commit is contained in:
@@ -32,7 +32,13 @@ export default
|
||||
timeout: null,
|
||||
|
||||
getSessionTime: function () {
|
||||
return Store('sessionTime_'+$rootScope.current_user.id);
|
||||
if(Store('sessionTime_'+$rootScope.current_user.id)){
|
||||
return Store('sessionTime_'+$rootScope.current_user.id);
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
isExpired: function (increase) {
|
||||
|
||||
Reference in New Issue
Block a user