mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Fix double modal issue on 401 error
This commit is contained in:
@@ -35,9 +35,12 @@ function HostCountGraphData(Rest, getBasePath, processErrors, $q) {
|
|||||||
return $q.all({
|
return $q.all({
|
||||||
license: getLicenseData(),
|
license: getLicenseData(),
|
||||||
hosts: getHostData()
|
hosts: getHostData()
|
||||||
}).catch(function (data, status) {
|
}).catch(function (response) {
|
||||||
processErrors(null, data, status, null, { hdr: 'Error!',
|
var errorMessage = 'Failed to get: ' + response.url + ' GET returned: ' + response.status;
|
||||||
msg: 'Failed to get: ' + url + ' GET returned: ' + status });
|
processErrors(null, response.data, response.status, null, { hdr: 'Error!',
|
||||||
|
msg: errorMessage
|
||||||
|
});
|
||||||
|
return response;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user