Completed
Push — os-images-svg ( 39c107 )
by Tony
09:59
created
app/Models/Device.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -213,11 +213,14 @@
 block discarded – undo
213 213
         $disabled = $this->disabled;
214 214
         if ($disabled == 1) {
215 215
             return 'teal';
216
-        } elseif ($ignore == 1) {
216
+        }
217
+        elseif ($ignore == 1) {
217 218
             return 'yellow';
218
-        } elseif ($status == 0) {
219
+        }
220
+        elseif ($status == 0) {
219 221
             return 'danger';
220
-        } else {
222
+        }
223
+        else {
221 224
             return 'success';
222 225
         }
223 226
     }
Please login to merge, or discard this patch.
app/DataTables/DeviceDataTable.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@
 block discarded – undo
41 41
             ->editColumn('status_reason', function ($device) {
42 42
                 if ($device->status == 0) {
43 43
                     return '<span data-toggle="tooltip" title="down" class="device-status label label-danger">'.$device->status_reason.'</span>';
44
-                } else {
44
+                }
45
+                else {
45 46
                     return '<span data-toggle="tooltip" title="up" class="device-status label label-success">up</span>';
46 47
                 }
47 48
             })
Please login to merge, or discard this patch.