webui: Hide rediscover button for ping only devices (#7594)

This commit is contained in:
Tony Murray
2017-10-31 14:48:15 -05:00
committed by Neil Lathwood
parent 297e5ae874
commit 087dbbd173

View File

@@ -94,7 +94,7 @@ if ($updated && $update_message) {
</div>
<div class="col-md-1 col-md-offset-2">
<?php
if ($config['enable_clear_discovery'] == 1) {
if ($config['enable_clear_discovery'] == 1 && !$device['snmp_disable']) {
?>
<button type="submit" id="rediscover" data-device_id="<?php echo($device['device_id']); ?>" class="btn btn-primary" name="rediscover"><i class="fa fa-retweet"></i> Rediscover device</button>
<?php