mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 09:27:31 -02:30
adding inventory column to smart inventory host search modal
This commit is contained in:
@@ -44,11 +44,12 @@ export default ['templateUrl', function(templateUrl) {
|
|||||||
let hostList = _.cloneDeep(HostsList);
|
let hostList = _.cloneDeep(HostsList);
|
||||||
delete hostList.fields.toggleHost;
|
delete hostList.fields.toggleHost;
|
||||||
delete hostList.fields.active_failures;
|
delete hostList.fields.active_failures;
|
||||||
delete hostList.fields.inventory;
|
|
||||||
delete hostList.fields.name.ngClick;
|
delete hostList.fields.name.ngClick;
|
||||||
hostList.fields.name.class += " HostFilterModal-tableRow";
|
hostList.fields.name.class += " HostFilterModal-tableRow";
|
||||||
hostList.fields.name.noLink = true;
|
hostList.fields.name.noLink = true;
|
||||||
hostList.well = false;
|
hostList.well = false;
|
||||||
|
delete hostList.fields.inventory.ngClick;
|
||||||
|
hostList.fields.inventory.ngBind = 'host.summary_fields.inventory.name';
|
||||||
let html = GenerateList.build({
|
let html = GenerateList.build({
|
||||||
list: hostList,
|
list: hostList,
|
||||||
input_type: 'host-filter-modal-body',
|
input_type: 'host-filter-modal-body',
|
||||||
@@ -79,7 +80,6 @@ export default ['templateUrl', function(templateUrl) {
|
|||||||
|
|
||||||
$scope.destroyModal();
|
$scope.destroyModal();
|
||||||
};
|
};
|
||||||
|
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|||||||
Reference in New Issue
Block a user