summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2020-02-19 09:37:30 +0000
committerRaptor Engineering Development Team <support@raptorengineering.com>2020-02-19 09:39:06 +0000
commita5c98b9b34ee25f5fd498de49dd317cd44285deb (patch)
treec63d28d303fef1ab6d1df6d4472ebdc2ce824dc8
parent92fa4ab49edcf2d4cb96a994e3430aa4766fe70b (diff)
downloadtalos-openbmc-a5c98b9b34ee25f5fd498de49dd317cd44285deb.tar.gz
talos-openbmc-a5c98b9b34ee25f5fd498de49dd317cd44285deb.zip
Display tachometer hardware on WebUI inventory page in human readable form
-rw-r--r--meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch13
-rw-r--r--meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui_git.bbappend1
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch b/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch
new file mode 100644
index 000000000..f25c799b7
--- /dev/null
+++ b/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch
@@ -0,0 +1,13 @@
+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(
diff --git a/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui_git.bbappend b/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui_git.bbappend
index c2dae597b..5fac6e13c 100644
--- a/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui_git.bbappend
+++ b/meta-rcs/meta-talos/recipes-phosphor/webui/phosphor-webui_git.bbappend
@@ -1,4 +1,5 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/phosphor-webui:"
SRC_URI += "file://login-page-name.patch \
file://cpu-power-reporting.patch \
+ file://tachometer-display.patch \
"
OpenPOWER on IntegriCloud