Display tachometer hardware on WebUI inventory page in human readable form

parent ef90c935
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 4298884..e1881ff 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -1472,7 +1472,7 @@ window.angular && (function(angular) {
}
function titlelize(title) {
- title = title.replace(/([A-Z0-9]+)/g, ' $1').replace(/^\s+/, '');
+ title = title.replace(/tach/g, ' Tachometer').replace(/([A-Z0-9]+)/g, ' $1').replace(/^\s+/, '');
for (var i = 0; i < Constants.HARDWARE.uppercase_titles.length;
i++) {
if (title.toLowerCase().indexOf(
FILESEXTRAPATHS_prepend := "${THISDIR}/phosphor-webui:"
SRC_URI += "file://login-page-name.patch \
file://cpu-power-reporting.patch \
file://tachometer-display.patch \
"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment