From 443d54407b3c76767287dc474f861a2481def074 Mon Sep 17 00:00:00 2001 From: Leigh Johnson Date: Wed, 27 Apr 2016 09:29:16 -0400 Subject: [PATCH] fix typo in service call ##1679 --- .../src/dashboard/hosts/dashboard-hosts-list.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js b/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js index 03398be7e9..066ab5f9aa 100644 --- a/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js +++ b/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js @@ -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;