diff --git a/api/v1/entries/hostheartbeat.php b/api/v1/entries/hostheartbeat.php index b2862521f1..cec8180eca 100644 --- a/api/v1/entries/hostheartbeat.php +++ b/api/v1/entries/hostheartbeat.php @@ -78,6 +78,9 @@ class hostHeartbeatEntry extends baseEntry 'status' => $vm->status, 'extranet' => $vm->ip, ); + + if(!$vm->sshPortOnHost) unset($vmData['ssh']); + if($heartbeat > 0) $vmData['heartbeat'] = date("Y-m-d H:i:s", $heartbeat); $this->dao->update(TABLE_ZAHOST)->data($vmData)->where('mac')->eq($vm->macAddress)->exec(); diff --git a/module/zahost/css/view.css b/module/zahost/css/view.css index a01465a8bb..5d092fc6e2 100644 --- a/module/zahost/css/view.css +++ b/module/zahost/css/view.css @@ -20,3 +20,4 @@ .btn-info {background-color: unset;} .icon-refresh {font-size: 15px;} .load-indicator:after {top: 33%;} +.btn.disabled i {color: #fff;} diff --git a/module/zahost/view/view.html.php b/module/zahost/view/view.html.php index ab54e22f53..d78b9e23d9 100644 --- a/module/zahost/view/view.html.php +++ b/module/zahost/view/view.html.php @@ -131,9 +131,15 @@