1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Fix double modal issue on 401 error

This commit is contained in:
Joe Fiorini 2015-01-27 15:42:53 -05:00
parent d3a6fac5f9
commit 896433300d

View File

@ -35,9 +35,12 @@ function HostCountGraphData(Rest, getBasePath, processErrors, $q) {
return $q.all({
license: getLicenseData(),
hosts: getHostData()
}).catch(function (data, status) {
processErrors(null, data, status, null, { hdr: 'Error!',
msg: 'Failed to get: ' + url + ' GET returned: ' + status });
}).catch(function (response) {
var errorMessage = 'Failed to get: ' + response.url + ' GET returned: ' + response.status;
processErrors(null, response.data, response.status, null, { hdr: 'Error!',
msg: errorMessage
});
return response;
});
}
};