fix typo in service call ##1679

This commit is contained in:
Leigh Johnson 2016-04-27 09:29:16 -04:00
parent 85698213cb
commit 443d54407b

View File

@ -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;