mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
local_config
Load what's in local storage, if anything, while waiting for external file to load.
This commit is contained in:
@@ -409,9 +409,9 @@ angular.module('Tower', [
|
|||||||
}])
|
}])
|
||||||
|
|
||||||
.run(['$compile', '$cookieStore', '$rootScope', '$log', 'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'ViewLicense',
|
.run(['$compile', '$cookieStore', '$rootScope', '$log', 'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'ViewLicense',
|
||||||
'Timer', 'ClearScope', 'HideStream', 'Socket', 'LoadConfig',
|
'Timer', 'ClearScope', 'HideStream', 'Socket', 'LoadConfig', 'Store',
|
||||||
function ($compile, $cookieStore, $rootScope, $log, CheckLicense, $location, Authorization, LoadBasePaths, ViewLicense,
|
function ($compile, $cookieStore, $rootScope, $log, CheckLicense, $location, Authorization, LoadBasePaths, ViewLicense,
|
||||||
Timer, ClearScope, HideStream, Socket, LoadConfig) {
|
Timer, ClearScope, HideStream, Socket, LoadConfig, Store) {
|
||||||
|
|
||||||
var e, html, sock, checkCount = 0;
|
var e, html, sock, checkCount = 0;
|
||||||
|
|
||||||
@@ -590,6 +590,11 @@ angular.module('Tower', [
|
|||||||
}, 5000);
|
}, 5000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!$AnsibleConfig) {
|
||||||
|
// there may be leg time loading the config file, so temporarily use what's in local storage
|
||||||
|
$AnsibleConfig = Store('AnsibleConfig');
|
||||||
|
}
|
||||||
|
|
||||||
LoadConfig();
|
LoadConfig();
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user