mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Replaced color indicator near uptime counter with colored text and change color of status indicator to black on disabled devices instead of gray(#10372)
(matches availablity map with show ignored/disabled enabled)
This commit is contained in:
@@ -334,27 +334,6 @@ class Device extends BaseModel
|
||||
$this->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function statusName()
|
||||
{
|
||||
if ($this->disabled == 1) {
|
||||
return 'disabled';
|
||||
} elseif ($this->ignore == 1) {
|
||||
return 'ignore';
|
||||
} elseif ($this->status == 0) {
|
||||
return 'down';
|
||||
} else {
|
||||
$warning_time = \LibreNMS\Config::get('uptime_warning', 84600);
|
||||
if ($this->uptime < $warning_time && $this->uptime != 0) {
|
||||
return 'warn';
|
||||
}
|
||||
|
||||
return 'up';
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Accessors/Mutators ----
|
||||
|
||||
public function getIconAttribute($icon)
|
||||
|
Reference in New Issue
Block a user