mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/smart: Don't color WHEN_FAILED column header (#3333)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PLUGIN_NAME= smart
|
||||
PLUGIN_VERSION= 2.2
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= SMART tools
|
||||
PLUGIN_DEPENDS= smartmontools
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
// Highlights the words "PASSED", "FAILED", and "WARNING".
|
||||
function add_colors(text) {
|
||||
return text
|
||||
.replace(/PASSED/g, '<span class="text-success">{{ lang._('PASSED') }}</span>')
|
||||
.replace(/FAILED/g, '<span class="text-danger">{{ lang._('FAILED') }}</span>')
|
||||
.replace(/WARNING/g, '<span class="text-warning">{{ lang._('WARNING') }}</span>');
|
||||
.replace(/\bPASSED\b/g, '<span class="text-success">{{ lang._('PASSED') }}</span>')
|
||||
.replace(/\bFAILED\b/g, '<span class="text-danger">{{ lang._('FAILED') }}</span>')
|
||||
.replace(/\bWARNING\b/g, '<span class="text-warning">{{ lang._('WARNING') }}</span>');
|
||||
};
|
||||
|
||||
// Appends options to select device.
|
||||
|
||||
Reference in New Issue
Block a user