1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Starting timer after config response returns

b/c timer depends on the 'auth-token-timeout' from the /config response
This commit is contained in:
Jared Tabor 2016-06-02 16:04:38 -07:00
parent 7c489ae4c8
commit 0ae30d14e9
2 changed files with 5 additions and 5 deletions

View File

@ -872,10 +872,10 @@ var tower = angular.module('Tower', [
$rootScope.user_is_superuser = Authorization.getUserInfo('is_superuser');
// state the user refreshes we want to open the socket, except if the user is on the login page, which should happen after the user logs in (see the AuthService module for that call to OpenSocket)
if(!_.contains($location.$$url, '/login')){
Timer.init().then(function(timer){
$rootScope.sessionTimer = timer;
$rootScope.$emit('OpenSocket');
ConfigService.getConfig().then(function(){
ConfigService.getConfig().then(function(){
Timer.init().then(function(timer){
$rootScope.sessionTimer = timer;
$rootScope.$emit('OpenSocket');
pendoService.issuePendoIdentity();
CheckLicense.test();
FeaturesService.get();

View File

@ -62,7 +62,7 @@ export default
now = new Date().getTime()/1000,
diff = stime-now;
if(diff < 61){
if(diff < 60){
return diff;
}
else {