Events: Filter by event type
The filter search did not work for the event type (e.g.
"xyz.openbmc_project.Software.Version.Error.ManifestFileFailure")
Added the event type to the search terms.
Resolves openbmc/phosphor-webui#5
Tested: See example.xyz.openbmc_project.Example.Elog.AutoTestSimple
events on typing "auto" or "test".
Change-Id: I47361a4fee0285c5e09f63599bcdacbd51a7f3cd
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 05b7c0c..e071dfc 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -711,6 +711,7 @@
search_text:
('#' + content.data[key].Id + ' ' +
severityCode + ' ' +
+ content.data[key].Message + ' ' +
content.data[key].Severity + ' ' +
content.data[key].AdditionalData.join(' '))
.toLowerCase(),