mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
local_config
Load what's in local storage, if anything, while waiting for external file to load.
This commit is contained in:
parent
b3c41c01b8
commit
5fb27ff9c3
@ -409,9 +409,9 @@ angular.module('Tower', [
|
||||
}])
|
||||
|
||||
.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,
|
||||
Timer, ClearScope, HideStream, Socket, LoadConfig) {
|
||||
Timer, ClearScope, HideStream, Socket, LoadConfig, Store) {
|
||||
|
||||
var e, html, sock, checkCount = 0;
|
||||
|
||||
@ -590,6 +590,11 @@ angular.module('Tower', [
|
||||
}, 5000);
|
||||
});
|
||||
|
||||
if (!$AnsibleConfig) {
|
||||
// there may be leg time loading the config file, so temporarily use what's in local storage
|
||||
$AnsibleConfig = Store('AnsibleConfig');
|
||||
}
|
||||
|
||||
LoadConfig();
|
||||
}
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user