mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 08:01:38 +02:00
Added ability to disable rediscovery button for devices
This commit is contained in:
@@ -65,9 +65,15 @@ if ($updated && $update_message)
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
</div>
|
||||
<?php
|
||||
if($config['disable_clear_discovery'] == 0) {
|
||||
?>
|
||||
<div class="col-sm-1">
|
||||
<button type="submit" id="rediscover" data-device_id="<?php echo($device['device_id']); ?>" class="btn btn-primary" name="rediscover">Rediscover device</button>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<br />
|
||||
<form id="edit" name="edit" method="post" action="" role="form" class="form-horizontal">
|
||||
|
||||
@@ -578,4 +578,6 @@ $config['dateformat']['long'] = "r"; # RFC2822 style
|
||||
$config['dateformat']['compact'] = "Y-m-d H:i:s";
|
||||
$config['dateformat']['time'] = "H:i:s";
|
||||
|
||||
$config['disable_clear_discovery'] = 0;// Set this to 1 if you want to disable the web option to rediscover devices
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user