Skip to content

Commit

Permalink
Fix online test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Mar 3, 2022
1 parent c298869 commit a7b3473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ angular.module('lmn.linbo_sync').config(function ($routeProvider) {
$scope.isUp = function(group, host) {
var index;
index = $scope.groups[group].hosts.indexOf(host);
return $http.get(`/api/lm/linbo/isOnline/${host.host}`).then(function(resp) {
return $http.get(`/api/lm/linbo/isOnline/${host.hostname}`).then(function(resp) {
$scope.groups[group].hosts[index].up = resp.data;
if (resp.data === "Off") {
return $scope.groups[group].hosts[index].upClass = "btn-danger";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ angular.module('lmn.linbo_sync').controller 'SyncIndexController', ($scope, $htt
$scope.isUp = (group, host) ->
index = $scope.groups[group].hosts.indexOf(host)

$http.get("/api/lm/linbo/isOnline/#{host.host}").then (resp) ->
$http.get("/api/lm/linbo/isOnline/#{host.hostname}").then (resp) ->
$scope.groups[group].hosts[index].up = resp.data
if ( resp.data == "Off" )
$scope.groups[group].hosts[index].upClass = "btn-danger"
Expand Down

0 comments on commit a7b3473

Please sign in to comment.