mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -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:
parent
fa2a11d8e7
commit
d7c78d0b28
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user