mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
removing stale code
to make atom happy :)
This commit is contained in:
parent
b83dfda92c
commit
80eeda1c8c
@ -71,7 +71,6 @@ export default
|
||||
},
|
||||
|
||||
expireSession: function (reason) {
|
||||
var x;
|
||||
if(reason === 'session_limit'){
|
||||
$rootScope.sessionLimitExpired = true;
|
||||
$rootScope.sessionExpired = false;
|
||||
@ -90,15 +89,15 @@ export default
|
||||
var tm, t, x, y;
|
||||
tm = ($AnsibleConfig.session_timeout) ? $AnsibleConfig.session_timeout : 1800;
|
||||
t = new Date().getTime() + (tm * 1000);
|
||||
x = new Object({
|
||||
x = {
|
||||
time: t,
|
||||
loggedIn: true
|
||||
});
|
||||
};
|
||||
if(Store('sessionTime')){
|
||||
y = Store('sessionTime');
|
||||
}
|
||||
else {
|
||||
y = new Object();
|
||||
y = {};
|
||||
}
|
||||
y[$rootScope.current_user.id] = x;
|
||||
Store('sessionTime' , y);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user