mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #2531 from mabashian/job-list-extra-api-calls
Removed unnecessary extra inventory source API calls
This commit is contained in:
commit
bcb9beb6ac
@ -157,7 +157,7 @@ export default
|
||||
}
|
||||
])
|
||||
|
||||
.factory('JobsListUpdate', ['Rest', function(Rest) {
|
||||
.factory('JobsListUpdate', [function() {
|
||||
return function(params) {
|
||||
var scope = params.scope,
|
||||
parent_scope = params.parent_scope,
|
||||
@ -189,20 +189,6 @@ export default
|
||||
}
|
||||
return true;
|
||||
});
|
||||
//Set the name link
|
||||
if (item.type === "inventory_update") {
|
||||
Rest.setUrl(item.related.inventory_source);
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
itm.nameHref = "/home/groups?id=" + data.group;
|
||||
});
|
||||
}
|
||||
else if (item.type === "project_update") {
|
||||
itm.nameHref = "/projects/" + item.project;
|
||||
}
|
||||
else if (item.type === "job") {
|
||||
itm.nameHref = "";
|
||||
}
|
||||
|
||||
if (list.name === 'completed_jobs' || list.name === 'running_jobs') {
|
||||
itm.status_tip = itm.status_label + '. Click for details.';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user