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:
CirnoT
2019-07-04 10:42:48 +02:00
committed by PipoCanaja
parent bad050520e
commit 86740a76c0
4 changed files with 35 additions and 35 deletions

View File

@@ -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)