mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02: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,
|
timeout: null,
|
||||||
|
|
||||||
getSessionTime: function () {
|
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) {
|
isExpired: function (increase) {
|
||||||
|
|||||||
Reference in New Issue
Block a user