AC-308 Added Remove button to Hosts list.

This commit is contained in:
chouseknecht
2013-07-30 11:07:47 -04:00
parent b904dd2ae5
commit e5aeefa43d
8 changed files with 60 additions and 34 deletions

View File

@@ -488,7 +488,13 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP
}
scope.deleteHost = function(host_id, host_name) {
HostsDelete({ scope: scope, "inventory_id": id, group_id: scope.group_id, host_id: host_id, host_name: host_name });
HostsDelete({ scope: scope, "inventory_id": id, group_id: scope.group_id, host_id: host_id, host_name: host_name,
request: 'delete' });
}
scope.removeHost = function(host_id, host_name) {
HostsDelete({ scope: scope, "inventory_id": id, group_id: scope.group_id, host_id: host_id, host_name: host_name,
request: 'remove' });
}
scope.showEvents = function(host_name, last_job) {