mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
fix typo in service call ##1679
This commit is contained in:
parent
85698213cb
commit
443d54407b
@ -16,7 +16,7 @@ export default
|
||||
$state.go('dashboardHosts.edit', {id: id});
|
||||
};
|
||||
$scope.toggleHostEnabled = function(host){
|
||||
DashboardHostsService.setHostStatus(host, !host.enabled)
|
||||
DashboardHostService.setHostStatus(host, !host.enabled)
|
||||
.then(function(res){
|
||||
var index = _.findIndex($scope.hosts, function(o) {return o.id === res.data.id;});
|
||||
$scope.hosts[index].enabled = res.data.enabled;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user