mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
local_config
Don't start the app until the config file is loaded and $AnsibleConfig is defined.
This commit is contained in:
@@ -25,6 +25,7 @@ angular.module('LoadConfigHelper', ['Utilities'])
|
||||
$http({ method:'GET', url: $basePath + 'js/config.js' })
|
||||
.success(function(data) {
|
||||
$AnsibleConfig = eval(data);
|
||||
$rootScope.$emit('ConfigReady');
|
||||
})
|
||||
.error(function(data, status) {
|
||||
ProcessErrors($rootScope, data, status, null, { hdr: 'Error!',
|
||||
@@ -37,10 +38,11 @@ angular.module('LoadConfigHelper', ['Utilities'])
|
||||
$http({ method:'GET', url: $basePath + 'js/local_config.js' })
|
||||
.success(function(data) {
|
||||
$AnsibleConfig = eval(data);
|
||||
$rootScope.$emit('ConfigReady');
|
||||
})
|
||||
.error(function() {
|
||||
//local_config.js not found
|
||||
$rootScope.$emit('LoadConfig');
|
||||
});
|
||||
};
|
||||
}
|
||||
}]);
|
||||
Reference in New Issue
Block a user