fix: Re-enable the edit device groups button (#4726)

This commit is contained in:
Neil Lathwood
2016-10-06 22:21:20 +01:00
committed by Tony Murray
parent 07e8e9f2be
commit 9298304262

View File

@@ -17,7 +17,7 @@ if (!empty($group_count_check)) {
echo '<td>'.formatDeviceGroupPattern($group['pattern'], json_decode($group['params'])).'</td>';
echo '<td>';
echo "<button type='button' class='btn btn-primary btn-sm' aria-label='Edit' data-toggle='modal' data-target='#create-group' data-group_id='".$group['id']."' name='edit-device-group'";
if (is_null($group['params'])) {
if (!is_null($group['params'])) {
echo " disabled title='LibreNMS V2 device groups cannot be edited in LibreNMS V1'";
}
echo "><i class='fa fa-pencil' aria-hidden='true'></i></button> ";