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 11:07:51 +0000
commit56092bb95043bc4a8fd691cd76e632689e1cd834 (patch)
tree0df099d8d833f5b697de4e9d84f1edf9dbd56758
parentef90c935b73a049581ec4ae7a3c9706d57892cbd (diff)
downloadblackbird-openbmc-56092bb95043bc4a8fd691cd76e632689e1cd834.tar.gz
blackbird-openbmc-56092bb95043bc4a8fd691cd76e632689e1cd834.zip
Display tachometer hardware on WebUI inventory page in human readable form
-rw-r--r--meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch13
-rw-r--r--meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui_git.bbappend1
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch b/meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui/tachometer-display.patch
new file mode 100644
index 000000000..f25c799b7
--- /dev/null
+++ b/meta-rcs/meta-blackbird/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-blackbird/recipes-phosphor/webui/phosphor-webui_git.bbappend b/meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui_git.bbappend
index c2dae597b..5fac6e13c 100644
--- a/meta-rcs/meta-blackbird/recipes-phosphor/webui/phosphor-webui_git.bbappend
+++ b/meta-rcs/meta-blackbird/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